@supermapgis/iclient-ol 11.2.1 → 12.0.0-r
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/control/ChangeTileVersion.js +1 -1
- package/control/Logo.js +1 -1
- package/control/ScaleLine.js +2 -3
- package/control/index.js +1 -1
- package/core/MapExtend.js +1 -1
- package/core/StyleUtils.js +3 -3
- package/core/Util.js +4 -20
- package/core/index.js +1 -1
- package/css/index.js +1 -1
- package/dist/iclient-openlayers-es6.js +25314 -16089
- package/dist/iclient-openlayers-es6.min.js +3 -3
- package/dist/iclient-openlayers.css +2 -2
- package/dist/iclient-openlayers.js +135928 -123450
- package/dist/iclient-openlayers.min.css +2 -2
- package/dist/iclient-openlayers.min.js +3 -3
- package/index.js +1 -1
- package/mapping/BaiduMap.js +1 -2
- package/mapping/ImageSuperMapRest.js +68 -12
- package/mapping/ImageTileSuperMapRest.js +1 -1
- package/mapping/SuperMapCloud.js +1 -1
- package/mapping/Tianditu.js +1 -1
- package/mapping/TileSuperMapRest.js +1 -1
- package/mapping/WebMap.js +321 -166
- package/mapping/index.js +1 -1
- package/namespace.js +1 -1
- package/overlay/DataFlow.js +1 -1
- package/overlay/FGB.js +69 -4
- package/overlay/Graph.js +1 -1
- package/overlay/GraphMap.js +1 -1
- package/overlay/Graphic.js +1 -1
- package/overlay/HeatMap.js +1 -1
- package/overlay/Label.js +1 -1
- package/overlay/Mapv.js +1 -1
- package/overlay/Range.js +1 -1
- package/overlay/RankSymbol.js +1 -1
- package/overlay/Turf.js +1 -1
- package/overlay/Unique.js +1 -1
- package/overlay/VectorTileSuperMapRest.js +120 -87
- package/overlay/graphic/CanvasRenderer.js +1 -1
- package/overlay/graphic/CloverShape.js +1 -1
- package/overlay/graphic/Graphic.js +1 -1
- package/overlay/graphic/HitCloverShape.js +1 -1
- package/overlay/graphic/WebGLRenderer.js +1 -1
- package/overlay/graphic/index.js +1 -1
- package/overlay/index.js +1 -1
- package/overlay/mapv/MapvCanvasLayer.js +1 -1
- package/overlay/mapv/MapvLayer.js +1 -1
- package/overlay/mapv/index.js +1 -1
- package/overlay/theme/GeoFeature.js +1 -1
- package/overlay/theme/Theme.js +1 -1
- package/overlay/theme/ThemeFeature.js +1 -1
- package/overlay/theme/index.js +1 -1
- package/overlay/vectortile/DeafultCanvasStyle.js +1 -1
- package/overlay/vectortile/MapboxStyles.js +428 -389
- package/overlay/vectortile/StyleMap.js +1 -1
- package/overlay/vectortile/VectorTileStyles.js +1 -1
- package/overlay/vectortile/index.js +1 -1
- package/overlay/vectortile/olExtends.js +1 -1
- package/package.json +7 -7
- package/services/AddressMatchService.js +1 -1
- package/services/ChartService.js +1 -1
- package/services/DataFlowService.js +1 -1
- package/services/DatasetService.js +1 -1
- package/services/DatasourceService.js +1 -1
- package/services/FeatureService.js +1 -1
- package/services/FieldService.js +1 -1
- package/services/GridCellInfosService.js +1 -1
- package/services/ImageCollectionService.js +1 -1
- package/services/ImageService.js +1 -1
- package/services/KnowledgeGraphService.js +1 -1
- package/services/LayerInfoService.js +1 -1
- package/services/MapService.js +1 -1
- package/services/MeasureService.js +1 -1
- package/services/NetworkAnalyst3DService.js +1 -1
- package/services/NetworkAnalystService.js +1 -1
- package/services/ProcessingService.js +1 -1
- package/services/QueryService.js +1 -1
- package/services/ServiceBase.js +1 -1
- package/services/SpatialAnalystService.js +1 -1
- package/services/ThemeService.js +1 -1
- package/services/TrafficTransferAnalystService.js +1 -1
- package/services/WebPrintingJobService.js +1 -1
- package/services/index.js +1 -1
- package/mapping/webmap/config/MunicipalCenter.json +0 -1
- package/mapping/webmap/config/ProvinceCenter.json +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
import { MapService } from '../services/MapService';
|
package/control/Logo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
import {LogoBase64} from '@supermapgis/iclient-common/control/img/Logo';
|
package/control/ScaleLine.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
|
|
5
5
|
import Scale from 'ol/control/ScaleLine';
|
|
6
6
|
import * as olProj from 'ol/proj';
|
|
7
|
-
import AssertionError from 'ol/AssertionError';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* @class ScaleLine
|
|
@@ -119,7 +118,7 @@ export class ScaleLine extends Scale {
|
|
|
119
118
|
pointResolution /= 1609.3472;
|
|
120
119
|
}
|
|
121
120
|
} else {
|
|
122
|
-
|
|
121
|
+
throw new Error('Invalid units');// Invalid units
|
|
123
122
|
}
|
|
124
123
|
var DIGITS = [1, 2, 5];
|
|
125
124
|
let i = 3 * Math.floor(
|
package/control/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
export {ChangeTileVersion} from './ChangeTileVersion';
|
package/core/MapExtend.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
import olMap from 'ol/Map';
|
package/core/StyleUtils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
import { Util as CommonUtil, DOTS_PER_INCH, INCHES_PER_UNIT } from '@supermapgis/iclient-common/commontypes/Util';
|
|
@@ -6,7 +6,7 @@ import { StringExt } from '@supermapgis/iclient-common/commontypes/BaseTypes';
|
|
|
6
6
|
import { StyleMap } from '../overlay/vectortile/StyleMap';
|
|
7
7
|
import { DeafultCanvasStyle } from '../overlay/vectortile/DeafultCanvasStyle';
|
|
8
8
|
import { Util } from '../core/Util';
|
|
9
|
-
import Canvg from 'canvg';
|
|
9
|
+
import { Canvg } from 'canvg';
|
|
10
10
|
import Style from 'ol/style/Style';
|
|
11
11
|
import Icon from 'ol/style/Icon';
|
|
12
12
|
import CircleStyle from 'ol/style/Circle';
|
|
@@ -966,7 +966,7 @@ export class StyleUtils {
|
|
|
966
966
|
*/
|
|
967
967
|
static async getCanvasFromSVG(svgUrl, divDom, callBack) {
|
|
968
968
|
//一个图层对应一个canvas
|
|
969
|
-
const canvgs =
|
|
969
|
+
const canvgs = Canvg;
|
|
970
970
|
let canvas = document.createElement('canvas');
|
|
971
971
|
canvas.id = 'dataviz-canvas-' + Util.newGuid(8);
|
|
972
972
|
canvas.style.display = "none";
|
package/core/Util.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
import { Bounds } from '@supermapgis/iclient-common/commontypes/Bounds';
|
|
5
5
|
import { GeoJSON as GeoJSONFormat } from '@supermapgis/iclient-common/format/GeoJSON';
|
|
6
6
|
import { getMeterPerMapUnit, scalesToResolutions, getZoomByResolution, getDpi } from '@supermapgis/iclient-common/util/MapCalculateUtil';
|
|
7
|
+
import { isString, isArray } from '@supermapgis/iclient-common/util/BaseUtil';
|
|
8
|
+
import { isMatchAdministrativeName } from '@supermapgis/iclient-common/mapping/utils/util';
|
|
7
9
|
import * as olUtil from 'ol/util';
|
|
8
10
|
import Geometry from 'ol/geom/Geometry';
|
|
9
11
|
import { getVectorContext } from 'ol/render';
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
return null;
|
|
75
77
|
}
|
|
76
78
|
const result = new GeoJSONFormat().read(geoJSON, 'FeatureCollection');
|
|
77
|
-
return result[0].geometry;
|
|
79
|
+
return result && result[0].geometry;
|
|
78
80
|
},
|
|
79
81
|
|
|
80
82
|
/**
|
|
@@ -464,12 +466,6 @@
|
|
|
464
466
|
}
|
|
465
467
|
}
|
|
466
468
|
|
|
467
|
-
function isString(str) {
|
|
468
|
-
return typeof str === 'string' && str.constructor === String;
|
|
469
|
-
}
|
|
470
|
-
function isArray(obj) {
|
|
471
|
-
return Object.prototype.toString.call(obj) === '[object Array]';
|
|
472
|
-
}
|
|
473
469
|
function unsetMask(layers) {
|
|
474
470
|
const todoLayers = Array.isArray(layers) ? layers : [layers];
|
|
475
471
|
for (let index = 0; index < todoLayers.length; index++) {
|
|
@@ -486,15 +482,3 @@ function isArray(obj) {
|
|
|
486
482
|
layer.changed();
|
|
487
483
|
}
|
|
488
484
|
}
|
|
489
|
-
|
|
490
|
-
function isMatchAdministrativeName(featureName, fieldName) {
|
|
491
|
-
if (isString(fieldName)) {
|
|
492
|
-
let shortName = featureName.substr(0, 2);
|
|
493
|
-
// 张家口市和张家界市 特殊处理
|
|
494
|
-
if (shortName === '张家') {
|
|
495
|
-
shortName = featureName.substr(0, 3);
|
|
496
|
-
}
|
|
497
|
-
return !!fieldName.match(new RegExp(shortName));
|
|
498
|
-
}
|
|
499
|
-
return false;
|
|
500
|
-
}
|
package/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
export {StyleUtils} from './StyleUtils';
|
package/css/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
|
|
2
2
|
* This program are made available under the terms of the Apache License, Version 2.0
|
|
3
3
|
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
|
|
4
4
|
import './ChangeTileVersion.css';
|