@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 Observable from 'ol/Observable';
@@ -7,20 +7,26 @@ import Observable from 'ol/Observable';
7
7
  * @class ServiceBase
8
8
  * @category iServer Core
9
9
  * @classdesc ol.supermap 的服务基类。
10
- * @param {string} url - 服务地址。
10
+ * @param {string} url - 服务地址。具体地址类型由子类决定。
11
11
  * @param {Object} options - 参数。
12
12
  * @param {string} [options.proxy] - 服务代理地址。
13
- * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
13
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
14
14
  * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
15
15
  * @param {Object} [options.headers] - 请求头。
16
16
  * @extends {ol.Observable}
17
17
  * @usage
18
18
  */
19
19
  export class ServiceBase extends Observable {
20
- constructor(url, options) {
21
- super(url, options);
22
- this.options = options || {};
20
+ constructor(url, dataUrl, options) {
21
+ super(url, dataUrl, options);
23
22
  this.url = url;
23
+
24
+ if (typeof dataUrl === 'object') {
25
+ this.options = dataUrl || {};
26
+ } else {
27
+ this.dataUrl = dataUrl;
28
+ this.options = options || {};
29
+ }
24
30
  this.dispatchEvent({type: 'initialized', value: this});
25
31
  }
26
32
  }
@@ -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} from '../core/Util';
@@ -7,7 +7,6 @@ import { Point as GeometryPoint } from '@supermapgis/iclient-common/commontypes/
7
7
  import { SpatialAnalystService as CommonSpatialAnalystService } from '@supermapgis/iclient-common/iServer/SpatialAnalystService';
8
8
  import {ServiceBase} from './ServiceBase';
9
9
  import LineString from 'ol/geom/LineString';
10
- import GeoJSON from 'ol/format/GeoJSON';
11
10
 
12
11
  /**
13
12
  * @class SpatialAnalystService
@@ -21,10 +20,10 @@ import GeoJSON from 'ol/format/GeoJSON';
21
20
  * new SpatialAnalystService(url).bufferAnalysis(params,function(result){
22
21
  * //doSomething
23
22
  * })
24
- * @param {string} url - 服务地址。
23
+ * @param {string} url - 空间分析服务地址,如 http://{ip}:{port}/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst 。
25
24
  * @param {Object} options - 参数。
26
25
  * @param {string} [options.proxy] - 服务代理地址。
27
- * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
26
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
28
27
  * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
29
28
  * @param {Object} [options.headers] - 请求头。
30
29
  * @usage
@@ -457,10 +456,6 @@ export class SpatialAnalystService extends ServiceBase {
457
456
  */
458
457
 
459
458
  convertGeometry(ol3Geometry) {
460
- //判断是否传入的是geojson 并作相应处理
461
- if(["FeatureCollection", "Feature", "Geometry"].indexOf(ol3Geometry.type) != -1){
462
- return Util.toSuperMapGeometry(ol3Geometry);
463
- }
464
- return Util.toSuperMapGeometry(JSON.parse((new GeoJSON()).writeGeometry(ol3Geometry)));
459
+ return Util.toSuperMapGeometry(ol3Geometry);
465
460
  }
466
461
  }
@@ -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 {ServiceBase} from './ServiceBase';
@@ -7,7 +7,8 @@ import { ThemeService as CommonThemeService } from '@supermapgis/iclient-common/
7
7
  /**
8
8
  * @class ThemeService
9
9
  * @category iServer Map Theme
10
- * @classdesc 专题图服务类。地图学中将突出而深入地表示一种或几种要素或现象,即集中表示一个主题内容的地图称为专题地图。在 SuperMap 中,专题图是地图图层的符号化显示,即用各种图形渲染风格(大小,颜色,线型,填充等)来图形化地表现专题要素的某方面特征。该类可用于获取专题图的信息。
10
+ * @classdesc 专题图服务类。该类可用于获取专题图的信息。<br>
11
+ * 地图学中将突出而深入地表示一种或几种要素或现象,即集中表示一个主题内容的地图称为专题地图。在 SuperMap 中,专题图是地图图层的符号化显示,即用各种图形渲染风格(大小,颜色,线型,填充等)来图形化地表现专题要素的某方面特征。
11
12
  * @modulecategory Services
12
13
  * @extends {ServiceBase}
13
14
  * @example
@@ -16,10 +17,10 @@ import { ThemeService as CommonThemeService } from '@supermapgis/iclient-common/
16
17
  * }).getThemeInfo(params,function(result){
17
18
  * //doSomething
18
19
  * });
19
- * @param {string} url - 服务地址。
20
+ * @param {string} url - 地图服务地址。如 http://{ip}:{port}/iserver/services/map-world/rest/maps/World
20
21
  * @param {Object} options - 参数。
21
22
  * @param {string} [options.proxy] - 服务代理地址。
22
- * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
23
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
23
24
  * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
24
25
  * @param {Object} [options.headers] - 请求头。
25
26
  * @usage
@@ -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} from '../core/Util';
@@ -18,10 +18,10 @@ import Point from 'ol/geom/Point';
18
18
  * new TrafficTransferAnalystService(url).queryStop(params,function(result){
19
19
  * //doSomething
20
20
  * })
21
- * @param {string} url - 服务地址。
21
+ * @param {string} url - 交通换乘分析服务地址,如 http://{ip}:{port}/iserver/services/traffictransferanalyst-sample/restjsr/traffictransferanalyst/Traffic-Changchun 。
22
22
  * @param {Object} options - 参数。
23
23
  * @param {string} [options.proxy] - 服务代理地址。
24
- * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
24
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
25
25
  * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
26
26
  * @param {Object} [options.headers] - 请求头。
27
27
  * @usage
@@ -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 { ServiceBase } from './ServiceBase';
@@ -14,10 +14,10 @@ import Point from 'ol/geom/Point';
14
14
  * 提供方法:创建 Web 打印任务,获取 Web 打印任务内容,获取 Web 打印输出文档流,获取 Web 打印服务的布局模板信息等。
15
15
  * @modulecategory Services
16
16
  * @extends {ServiceBase}
17
- * @param {string} url - 服务地址。请求打印地图服务的 URL 应为:http://{服务器地址}:{服务端口号}/iserver/services/webprinting/rest/webprinting/v1。
17
+ * @param {string} url - Web 打印服务地址。请求打印地图服务的 URL 应为:http://{服务器地址}:{服务端口号}/iserver/services/webprinting/rest/webprinting/v1。
18
18
  * @param {Object} options - 服务交互时所需的可选参数。
19
19
  * @param {string} [options.proxy] - 服务代理地址。
20
- * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
20
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
21
21
  * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
22
22
  * @param {Object} [options.headers] - 请求头。
23
23
  * @example
package/services/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 {AddressMatchService} from './AddressMatchService';