@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.
Files changed (85) hide show
  1. package/control/ChangeTileVersion.js +1 -1
  2. package/control/Logo.js +1 -1
  3. package/control/ScaleLine.js +1 -1
  4. package/control/index.js +1 -1
  5. package/core/MapExtend.js +1 -1
  6. package/core/StyleUtils.js +1 -10
  7. package/core/Util.js +18 -7
  8. package/core/index.js +1 -1
  9. package/css/index.js +1 -1
  10. package/dist/iclient-openlayers-es6.js +67256 -59323
  11. package/dist/iclient-openlayers-es6.min.js +3 -3
  12. package/dist/iclient-openlayers.css +2 -2
  13. package/dist/iclient-openlayers.js +147394 -138648
  14. package/dist/iclient-openlayers.min.css +2 -2
  15. package/dist/iclient-openlayers.min.js +3 -3
  16. package/index.js +1 -1
  17. package/mapping/BaiduMap.js +1 -1
  18. package/mapping/ImageSuperMapRest.js +16 -5
  19. package/mapping/ImageTileSuperMapRest.js +2 -2
  20. package/mapping/InitMap.js +1 -1
  21. package/mapping/SuperMapCloud.js +1 -1
  22. package/mapping/Tianditu.js +6 -6
  23. package/mapping/TileSuperMapRest.js +266 -153
  24. package/mapping/WebMap.js +84 -30
  25. package/mapping/index.js +1 -1
  26. package/namespace.js +1 -1
  27. package/overlay/DataFlow.js +5 -5
  28. package/overlay/FGB.js +1 -1
  29. package/overlay/Graph.js +1 -1
  30. package/overlay/GraphMap.js +4 -4
  31. package/overlay/Graphic.js +1 -1
  32. package/overlay/HeatMap.js +1 -1
  33. package/overlay/Label.js +1 -1
  34. package/overlay/Mapv.js +1 -1
  35. package/overlay/Range.js +1 -1
  36. package/overlay/RankSymbol.js +1 -1
  37. package/overlay/Turf.js +1 -1
  38. package/overlay/Unique.js +1 -1
  39. package/overlay/VectorTileSuperMapRest.js +2 -2
  40. package/overlay/graphic/CanvasRenderer.js +1 -1
  41. package/overlay/graphic/CloverShape.js +1 -1
  42. package/overlay/graphic/Graphic.js +1 -1
  43. package/overlay/graphic/HitCloverShape.js +1 -1
  44. package/overlay/graphic/WebGLRenderer.js +1 -1
  45. package/overlay/graphic/index.js +1 -1
  46. package/overlay/index.js +1 -1
  47. package/overlay/mapv/MapvCanvasLayer.js +1 -1
  48. package/overlay/mapv/MapvLayer.js +1 -1
  49. package/overlay/mapv/index.js +1 -1
  50. package/overlay/theme/GeoFeature.js +1 -1
  51. package/overlay/theme/Theme.js +2 -2
  52. package/overlay/theme/ThemeFeature.js +1 -1
  53. package/overlay/theme/index.js +1 -1
  54. package/overlay/vectortile/DeafultCanvasStyle.js +1 -1
  55. package/overlay/vectortile/MapboxStyles.js +2 -2
  56. package/overlay/vectortile/StyleMap.js +1 -1
  57. package/overlay/vectortile/VectorTileStyles.js +2 -2
  58. package/overlay/vectortile/index.js +1 -1
  59. package/overlay/vectortile/olExtends.js +1 -9
  60. package/package.json +2 -2
  61. package/services/AddressMatchService.js +3 -3
  62. package/services/ChartService.js +55 -6
  63. package/services/DataFlowService.js +9 -9
  64. package/services/DatasetService.js +5 -5
  65. package/services/DatasourceService.js +5 -5
  66. package/services/FeatureService.js +10 -15
  67. package/services/FieldService.js +3 -3
  68. package/services/GeoprocessingService.js +1 -1
  69. package/services/GridCellInfosService.js +3 -4
  70. package/services/ImageCollectionService.js +3 -3
  71. package/services/ImageService.js +3 -3
  72. package/services/KnowledgeGraphService.js +3 -3
  73. package/services/LayerInfoService.js +2 -2
  74. package/services/MapService.js +3 -3
  75. package/services/MeasureService.js +4 -5
  76. package/services/NetworkAnalyst3DService.js +3 -5
  77. package/services/NetworkAnalystService.js +4 -6
  78. package/services/ProcessingService.js +3 -3
  79. package/services/QueryService.js +8 -9
  80. package/services/ServiceBase.js +12 -6
  81. package/services/SpatialAnalystService.js +4 -9
  82. package/services/ThemeService.js +5 -4
  83. package/services/TrafficTransferAnalystService.js +3 -3
  84. package/services/WebPrintingJobService.js +3 -3
  85. package/services/index.js +1 -1
@@ -1,4 +1,4 @@
1
- /* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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';
@@ -1,4 +1,4 @@
1
- /* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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';
@@ -1,4 +1,4 @@
1
- /* Copyright© 2000 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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 对象转为 SuperMap 几何图形。
71
- * @param {GeoJSONObject} geoJSON - GeoJSON 对象。
71
+ * @description 将 GeoJSON 对象 或 OpenaLayers 几何对象要素对象转为 SuperMap 几何对象。
72
+ * @param {GeoJSONObject|ModuleGeometry} obj - GeoJSON 对象 或 OpenaLayers 几何对象要素对象。
72
73
  * @private
73
74
  */
74
- toSuperMapGeometry(geoJSON) {
75
- if (!geoJSON || !geoJSON.type) {
75
+ toSuperMapGeometry(obj) {
76
+ if (!obj) {
76
77
  return null;
77
78
  }
78
- const result = new GeoJSONFormat().read(geoJSON, 'FeatureCollection');
79
- return result && result[0].geometry;
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 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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 - 2025 SuperMap Software Co.Ltd. All rights reserved.
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';