@supermapgis/iclient-ol 12.0.1-r → 12.1.2
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 +1 -1
- package/control/index.js +1 -1
- package/core/MapExtend.js +1 -1
- package/core/StyleUtils.js +1 -10
- package/core/Util.js +18 -7
- package/core/index.js +1 -1
- package/css/index.js +1 -1
- package/dist/iclient-openlayers-es6.js +67256 -59323
- package/dist/iclient-openlayers-es6.min.js +3 -3
- package/dist/iclient-openlayers.css +2 -2
- package/dist/iclient-openlayers.js +147394 -138648
- 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 -1
- package/mapping/ImageSuperMapRest.js +16 -5
- package/mapping/ImageTileSuperMapRest.js +2 -2
- package/mapping/InitMap.js +1 -1
- package/mapping/SuperMapCloud.js +1 -1
- package/mapping/Tianditu.js +6 -6
- package/mapping/TileSuperMapRest.js +266 -153
- package/mapping/WebMap.js +84 -30
- package/mapping/index.js +1 -1
- package/namespace.js +1 -1
- package/overlay/DataFlow.js +5 -5
- package/overlay/FGB.js +1 -1
- package/overlay/Graph.js +1 -1
- package/overlay/GraphMap.js +4 -4
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/overlay/vectortile/StyleMap.js +1 -1
- package/overlay/vectortile/VectorTileStyles.js +2 -2
- package/overlay/vectortile/index.js +1 -1
- package/overlay/vectortile/olExtends.js +1 -9
- package/package.json +2 -2
- package/services/AddressMatchService.js +3 -3
- package/services/ChartService.js +55 -6
- package/services/DataFlowService.js +9 -9
- package/services/DatasetService.js +5 -5
- package/services/DatasourceService.js +5 -5
- package/services/FeatureService.js +10 -15
- package/services/FieldService.js +3 -3
- package/services/GeoprocessingService.js +1 -1
- package/services/GridCellInfosService.js +3 -4
- package/services/ImageCollectionService.js +3 -3
- package/services/ImageService.js +3 -3
- package/services/KnowledgeGraphService.js +3 -3
- package/services/LayerInfoService.js +2 -2
- package/services/MapService.js +3 -3
- package/services/MeasureService.js +4 -5
- package/services/NetworkAnalyst3DService.js +3 -5
- package/services/NetworkAnalystService.js +4 -6
- package/services/ProcessingService.js +3 -3
- package/services/QueryService.js +8 -9
- package/services/ServiceBase.js +12 -6
- package/services/SpatialAnalystService.js +4 -9
- package/services/ThemeService.js +5 -4
- package/services/TrafficTransferAnalystService.js +3 -3
- package/services/WebPrintingJobService.js +3 -3
- package/services/index.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2026 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 - 2026 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,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2026 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
|
|
package/control/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2026 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 - 2026 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 - 2026 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';
|
|
@@ -988,15 +988,6 @@ export class StyleUtils {
|
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
|
|
991
|
-
/**
|
|
992
|
-
* @function StyleUtils.stopCanvg
|
|
993
|
-
* @description 调用Canvg实例的stop();
|
|
994
|
-
*/
|
|
995
|
-
static stopCanvg() {
|
|
996
|
-
this.canvgsV.forEach(v => v.stop());
|
|
997
|
-
this.canvgsV = [];
|
|
998
|
-
}
|
|
999
|
-
|
|
1000
991
|
/**
|
|
1001
992
|
* @function StyleUtils.getMarkerDefaultStyle 获取默认标注图层feature的样式
|
|
1002
993
|
* @param {string} featureType feature的类型
|
package/core/Util.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2026 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';
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
import Feature from 'ol/Feature';
|
|
16
16
|
import Projection from 'ol/proj/Projection';
|
|
17
17
|
import { get } from 'ol/proj';
|
|
18
|
+
import GeoJSON from 'ol/format/GeoJSON';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* @name Util
|
|
@@ -67,16 +68,26 @@
|
|
|
67
68
|
|
|
68
69
|
/**
|
|
69
70
|
* @function Util.toSuperMapGeometry
|
|
70
|
-
* @description 将 GeoJSON
|
|
71
|
-
* @param {GeoJSONObject}
|
|
71
|
+
* @description 将 GeoJSON 对象 或 OpenaLayers 几何对象要素对象转为 SuperMap 几何对象。
|
|
72
|
+
* @param {GeoJSONObject|ModuleGeometry} obj - GeoJSON 对象 或 OpenaLayers 几何对象要素对象。
|
|
72
73
|
* @private
|
|
73
74
|
*/
|
|
74
|
-
toSuperMapGeometry(
|
|
75
|
-
if (!
|
|
75
|
+
toSuperMapGeometry(obj) {
|
|
76
|
+
if (!obj) {
|
|
76
77
|
return null;
|
|
77
78
|
}
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
let result = obj;
|
|
80
|
+
if (obj instanceof Geometry) {
|
|
81
|
+
result = new GeoJSON().writeGeometryObject(obj);
|
|
82
|
+
}
|
|
83
|
+
if (obj instanceof Feature) {
|
|
84
|
+
result = new GeoJSON().writeFeatureObject(obj);
|
|
85
|
+
}
|
|
86
|
+
if (GeoJSONFormat.isGeoJSON(result)) {
|
|
87
|
+
const newFeatures = new GeoJSONFormat().read(result, 'FeatureCollection');
|
|
88
|
+
return newFeatures && newFeatures[0].geometry;
|
|
89
|
+
}
|
|
90
|
+
return null;
|
|
80
91
|
},
|
|
81
92
|
|
|
82
93
|
/**
|
package/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Copyright© 2000 -
|
|
1
|
+
/* Copyright© 2000 - 2026 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 - 2026 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';
|