Skip to content

Commit 23479a3

Browse files
committed
【version】12.0.1-r
1 parent 9c9aaed commit 23479a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+27924
-3155
lines changed

dist/classic/iclient-classic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,10 +953,10 @@ var defineGlobalProperty = __webpack_require__(9998);
953953
var SHARED = '__core-js_shared__';
954954
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
955955
(store.versions || (store.versions = [])).push({
956-
version: '3.43.0',
956+
version: '3.45.1',
957957
mode: IS_PURE ? 'pure' : 'global',
958958
copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
959-
license: 'https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE',
959+
license: 'https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE',
960960
source: 'https://github.com/zloirock/core-js'
961961
});
962962

dist/classic/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet-es6.js

Lines changed: 432 additions & 374 deletions
Large diffs are not rendered by default.

dist/leaflet/iclient-leaflet-es6.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet-vue.css

Lines changed: 8 additions & 4 deletions
Large diffs are not rendered by default.

dist/leaflet/iclient-leaflet-vue.js

Lines changed: 77 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @supermapgis/vue-iclient.(https://iclient.supermap.io)
44
* Copyright© 2000 - 2024 SuperMap Software Co.Ltd
55
* license: Apache-2.0
6-
* version: v12.0.0-r
6+
* version: v12.0.1-r
77
*
88
*/
99
(function webpackUniversalModuleDefinition(root, factory) {
@@ -58443,6 +58443,9 @@ var _default = exports.default = {
5844358443
realTime: '实时',
5844458444
errorCoordinate: '坐标格式不正确'
5844558445
},
58446+
baseLayerSwitcher: {
58447+
title: '底图切换'
58448+
},
5844658449
// layer
5844758450
dataFlow: {
5844858451
dataSubscriptionFailed: '数据订阅失败!'
@@ -88834,6 +88837,9 @@ var _default = exports.default = {
8883488837
realTime: 'real-time',
8883588838
errorCoordinate: 'invalid coordinate'
8883688839
},
88840+
baseLayerSwitcher: {
88841+
title: 'Base Map Switch'
88842+
},
8883788843
// layer
8883888844
dataFlow: {
8883988845
dataSubscriptionFailed: 'Data subscription failed!'
@@ -128569,6 +128575,8 @@ var iPortalDataService = exports.default = /*#__PURE__*/function (_Events) {
128569128575
featureResults = data.features;
128570128576

128571128577
if (data.numberMatched < maxFeatures) {
128578+
featureResults = _this4._transformContentFeatures(featureResults);
128579+
128572128580
_this4.iserverService._getFeaturesSucceed({
128573128581
result: {
128574128582
features: {
@@ -128592,6 +128600,7 @@ var iPortalDataService = exports.default = /*#__PURE__*/function (_Events) {
128592128600
results.forEach(function (result) {
128593128601
featureResults = featureResults.concat(result.features);
128594128602
});
128603+
featureResults = _this4._transformContentFeatures(featureResults);
128595128604

128596128605
_this4.iserverService._getFeaturesSucceed({
128597128606
result: {
@@ -134192,10 +134201,15 @@ var longlat_names = ['longlat', 'identity'];
134192134201
// CONCATENATED MODULE: ./node_modules/proj4/lib/projections.js
134193134202

134194134203

134204+
/** @type {Array<Partial<import('./Proj').default>>} */
134195134205
var projs = [merc, longlat];
134196134206
var projections_names = {};
134197134207
var projStore = [];
134198134208

134209+
/**
134210+
* @param {import('./Proj').default} proj
134211+
* @param {number} i
134212+
*/
134199134213
function add(proj, i) {
134200134214
var len = projStore.length;
134201134215
if (!proj.names) {
@@ -134209,12 +134223,15 @@ function add(proj, i) {
134209134223
return this;
134210134224
}
134211134225

134212-
134213-
134214134226
function getNormalizedProjName(n) {
134215134227
return n.replace(/[-\(\)\s]+/g, ' ').trim().replace(/ /g, '_');
134216134228
}
134217134229

134230+
/**
134231+
* Get a projection by name.
134232+
* @param {string} name
134233+
* @returns {import('./Proj').default|false}
134234+
*/
134218134235
function get(name) {
134219134236
if (!name) {
134220134237
return false;
@@ -135884,6 +135901,22 @@ function datum_datum(datumCode, datum_params, a, b, es, ep2, nadgrids) {
135884135901

135885135902
/** @typedef {{header: NadgridHeader, subgrids: Array<Subgrid>}} NADGrid */
135886135903

135904+
/**
135905+
* @typedef {Object} GeoTIFF
135906+
* @property {() => Promise<number>} getImageCount - Returns the number of images in the GeoTIFF.
135907+
* @property {(index: number) => Promise<GeoTIFFImage>} getImage - Returns a GeoTIFFImage for the given index.
135908+
*/
135909+
135910+
/**
135911+
* @typedef {Object} GeoTIFFImage
135912+
* @property {() => number} getWidth - Returns the width of the image.
135913+
* @property {() => number} getHeight - Returns the height of the image.
135914+
* @property {() => number[]} getBoundingBox - Returns the bounding box as [minX, minY, maxX, maxY] in degrees.
135915+
* @property {() => Promise<ArrayLike<ArrayLike<number>>>} readRasters - Returns the raster data as an array of bands.
135916+
* @property {Object} fileDirectory - The file directory object containing metadata.
135917+
* @property {Object} fileDirectory.ModelPixelScale - The pixel scale array [scaleX, scaleY, scaleZ] in degrees.
135918+
*/
135919+
135887135920
var loadedNadgrids = {};
135888135921

135889135922
/**
@@ -135896,14 +135929,14 @@ var loadedNadgrids = {};
135896135929
/**
135897135930
* @overload
135898135931
* @param {string} key - The key to associate with the loaded grid.
135899-
* @param {import('geotiff').GeoTIFF} data - The GeoTIFF instance to read the grid from.
135932+
* @param {GeoTIFF} data - The GeoTIFF instance to read the grid from.
135900135933
* @returns {{ready: Promise<NADGrid>}} - A promise that resolves to the loaded grid information.
135901135934
*/
135902135935
/**
135903135936
* Load either a NTv2 file (.gsb) or a Geotiff (.tif) to a key that can be used in a proj string like +nadgrids=<key>. Pass the NTv2 file
135904135937
* as an ArrayBuffer. Pass Geotiff as a GeoTIFF instance from the geotiff.js library.
135905135938
* @param {string} key - The key to associate with the loaded grid.
135906-
* @param {ArrayBuffer|import('geotiff').GeoTIFF} data The data to load, either an ArrayBuffer for NTv2 or a GeoTIFF instance.
135939+
* @param {ArrayBuffer|GeoTIFF} data The data to load, either an ArrayBuffer for NTv2 or a GeoTIFF instance.
135907135940
* @param {NTV2GridOptions} [options] Optional parameters.
135908135941
* @returns {{ready: Promise<NADGrid>}|NADGrid} - A promise that resolves to the loaded grid information.
135909135942
*/
@@ -135936,7 +135969,7 @@ function readNTV2Grid(key, data, options) {
135936135969

135937135970
/**
135938135971
* @param {string} key The key to associate with the loaded grid.
135939-
* @param {import('geotiff').GeoTIFF} tiff The GeoTIFF instance to read the grid from.
135972+
* @param {GeoTIFF} tiff The GeoTIFF instance to read the grid from.
135940135973
* @returns {Promise<NADGrid>} A promise that resolves to the loaded NAD grid information.
135941135974
*/
135942135975
async function readGeotiffGrid(key, tiff) {
@@ -136166,8 +136199,12 @@ function Projection(srsCode, callback) {
136166136199
this.forward = null;
136167136200
/** @type {<T extends import('./core').TemplateCoordinates>(coordinates: T, enforceAxis?: boolean) => T} */
136168136201
this.inverse = null;
136202+
/** @type {function(): void} */
136203+
this.init = null;
136169136204
/** @type {string} */
136170136205
this.name;
136206+
/** @type {Array<string>} */
136207+
this.names = null;
136171136208
/** @type {string} */
136172136209
this.title;
136173136210
callback = callback || function (error) {
@@ -142871,6 +142908,14 @@ var bonne_names = ['bonne', 'Bonne (Werner lat_1=90)'];
142871142908
* @property {(mgrsString: string) => [number, number]} toPoint
142872142909
*/
142873142910

142911+
/**
142912+
* @typedef {import('./defs').ProjectionDefinition} ProjectionDefinition
142913+
* @typedef {import('./core').TemplateCoordinates} TemplateCoordinates
142914+
* @typedef {import('./core').InterfaceCoordinates} InterfaceCoordinates
142915+
* @typedef {import('./core').Converter} Converter
142916+
* @typedef {import('./Proj').DatumDefinition} DatumDefinition
142917+
*/
142918+
142874142919
/**
142875142920
* @template {import('./core').TemplateCoordinates} T
142876142921
* @type {core<T> & {defaultDatum: string, Proj: typeof Proj, WGS84: Proj, Point: typeof Point, toPoint: typeof common, defs: typeof defs, nadgrid: typeof nadgrid, transform: typeof transform, mgrs: Mgrs, version: string}}
@@ -164898,6 +164943,7 @@ exports.getProjection = getProjection;
164898164943
exports.registerProjection = registerProjection;
164899164944
exports.toEpsgCode = toEpsgCode;
164900164945
exports.transformCoodinates = transformCoodinates;
164946+
exports.transformCoordinate = transformCoordinate;
164901164947

164902164948
var _util = __webpack_require__("e7LN");
164903164949

@@ -164977,6 +165023,31 @@ function transformCoodinates(_ref) {
164977165023
}
164978165024
}
164979165025

165026+
function transformCoordinate(fromProjection, toProjection, coordinates) {
165027+
if (fromProjection === toProjection) return coordinates;
165028+
165029+
if (fromProjection === 'EPSG:4490' && toProjection === 'EPSG:4326' || fromProjection === 'EPSG:4326' && toProjection === 'EPSG:4490') {
165030+
return coordinates;
165031+
} // proj4缺陷,EPSG:4214的坐标x为180,转换后变成-179.
165032+
165033+
165034+
if (fromProjection === 'EPSG:4214' && toProjection === 'EPSG:4326' && coordinates[0] === 180) {
165035+
var newCoordinate = transformCoodinates({
165036+
coordinates: coordinates,
165037+
sourceProjection: fromProjection,
165038+
destProjection: toProjection
165039+
});
165040+
newCoordinate[0] = 180;
165041+
return newCoordinate;
165042+
}
165043+
165044+
return transformCoodinates({
165045+
coordinates: coordinates,
165046+
sourceProjection: fromProjection,
165047+
destProjection: toProjection
165048+
});
165049+
}
165050+
164980165051
/***/ }),
164981165052

164982165053
/***/ "ymVN":

dist/leaflet/iclient-leaflet-vue.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet-vue.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)