@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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supermapgis/iclient-ol",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "12.
|
|
4
|
+
"version": "12.1.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"SuperMap",
|
|
7
7
|
"OpenLayers"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "SuperMap",
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@supermapgis/iclient-common": "12.
|
|
18
|
+
"@supermapgis/iclient-common": "12.1.2",
|
|
19
19
|
"@supermapgis/tile-decryptor": "^1.0.0",
|
|
20
20
|
"@turf/turf": "7.2.0",
|
|
21
21
|
"mapv": "2.0.62",
|
|
@@ -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 {ServiceBase} from './ServiceBase';
|
|
@@ -14,10 +14,10 @@ import { Util as CommonUtil } from '@supermapgis/iclient-common/commontypes/Util
|
|
|
14
14
|
* .code(function(result){
|
|
15
15
|
* //doSomething
|
|
16
16
|
* })
|
|
17
|
-
* @param {string} url -
|
|
17
|
+
* @param {string} url - 地址匹配服务地址,如 http://{ip}:{port}/iserver/services/addressmatch-Address/restjsr/v1/address 。
|
|
18
18
|
* @param {Object} options - 参数。
|
|
19
19
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
20
|
-
* @param {boolean} [options.withCredentials
|
|
20
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
21
21
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
22
22
|
* @param {Object} [options.headers] - 请求头。
|
|
23
23
|
* @extends {ServiceBase}
|
package/services/ChartService.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} from '../core/Util';
|
|
@@ -22,10 +22,11 @@ import { ChartService as CommonChartService } from '@supermapgis/iclient-common/
|
|
|
22
22
|
* }).queryChart(param,function(result){
|
|
23
23
|
* //doSomething
|
|
24
24
|
* })
|
|
25
|
-
* @param {string} url -
|
|
25
|
+
* @param {string} url - 地图服务地址,如 http://{ip}:{port}/iserver/services/map-chart/rest/maps/GB4X0000_52000 。
|
|
26
|
+
* @param {string} [dataUrl] - 数据服务地址。
|
|
26
27
|
* @param {Object} options - 参数。
|
|
27
28
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
28
|
-
* @param {boolean} [options.withCredentials
|
|
29
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
29
30
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
30
31
|
* @param {Object} [options.headers] - 请求头。
|
|
31
32
|
* @param {function} [options.fieldNameFormatter] - 对查询返回结果的字段名进行自定义。
|
|
@@ -33,9 +34,9 @@ import { ChartService as CommonChartService } from '@supermapgis/iclient-common/
|
|
|
33
34
|
*/
|
|
34
35
|
export class ChartService extends ServiceBase {
|
|
35
36
|
|
|
36
|
-
constructor(url, options) {
|
|
37
|
-
super(url, options);
|
|
38
|
-
this._chartService = new CommonChartService(url, options);
|
|
37
|
+
constructor(url, dataUrl, options) {
|
|
38
|
+
super(url, dataUrl, options);
|
|
39
|
+
this._chartService = new CommonChartService(url, dataUrl, options);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
/**
|
|
@@ -72,6 +73,54 @@ export class ChartService extends ServiceBase {
|
|
|
72
73
|
return this._chartService.getChartAcronymClassify(callback);
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
/**
|
|
77
|
+
* @function ChartService.prototype.getChartWaterDepth
|
|
78
|
+
* @version 12.1.0
|
|
79
|
+
* @description 获取海图水深信息。
|
|
80
|
+
* @param {ChartWaterDepthParameter} params - 海图水深查询所需参数类。
|
|
81
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
82
|
+
* @returns {Promise} Promise 对象。
|
|
83
|
+
*/
|
|
84
|
+
getChartWaterDepth(params, callback) {
|
|
85
|
+
return this._chartService.getChartWaterDepth(params, callback);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @function ChartService.prototype.getWaterLevel
|
|
90
|
+
* @version 12.1.0
|
|
91
|
+
* @description 获取S104海图水位和时间信息。
|
|
92
|
+
* @param {ChartWaterLevelParameter} params - S104海图水位和时间查询所需参数类。
|
|
93
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
94
|
+
* @returns {Promise} Promise 对象。
|
|
95
|
+
*/
|
|
96
|
+
getWaterLevel(params, callback) {
|
|
97
|
+
params = this._processParams(params);
|
|
98
|
+
return this._chartService.getWaterLevel(params, callback);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @function ChartService.prototype.getWLTimeRange
|
|
103
|
+
* @version 12.1.0
|
|
104
|
+
* @description 获取S104海图时间范围。
|
|
105
|
+
* @param {ChartWLTimeRangeParameter} params - S104海图时间范围查询所需参数类。
|
|
106
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
107
|
+
* @returns {Promise} Promise 对象。
|
|
108
|
+
*/
|
|
109
|
+
getWLTimeRange(params, callback) {
|
|
110
|
+
params = this._processParams(params);
|
|
111
|
+
return this._chartService.getWLTimeRange(params, callback);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @function ChartService.prototype.getChartMaritimePcInfo
|
|
116
|
+
* @description 展示海图S100图示目录支持的版本和其参数信息。
|
|
117
|
+
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
118
|
+
* @returns {Promise} Promise 对象。
|
|
119
|
+
*/
|
|
120
|
+
getChartMaritimePcInfo(callback) {
|
|
121
|
+
return this._chartService.getChartMaritimePcInfo(callback);
|
|
122
|
+
}
|
|
123
|
+
|
|
75
124
|
_processFormat(resultFormat) {
|
|
76
125
|
return resultFormat ? resultFormat : DataFormat.GEOJSON;
|
|
77
126
|
}
|
|
@@ -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 {ServiceBase} from './ServiceBase';
|
|
@@ -15,14 +15,14 @@ import { DataFlowService as DataFlow } from '@supermapgis/iclient-common/iServer
|
|
|
15
15
|
* new DataFlowService(url).queryChart(param,function(result){
|
|
16
16
|
* //doSomething
|
|
17
17
|
* })
|
|
18
|
-
* @param {string} url -
|
|
18
|
+
* @param {string} url - 数据流服务地址,如 ws://{ip}:{port}/iserver/services/dataflowTest/dataflow 。
|
|
19
19
|
* @param {Object} options - 参数。
|
|
20
20
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
21
|
-
* @param {boolean} [options.withCredentials
|
|
21
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
22
22
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
23
23
|
* @param {Object} [options.headers] - 请求头。
|
|
24
|
-
* @param {GeoJSONObject} [options.geometry] -
|
|
25
|
-
* @param {Object} [options.excludeField] -
|
|
24
|
+
* @param {GeoJSONObject} [options.geometry] - 空间范围,只有在该范围内的要素才能被接收。
|
|
25
|
+
* @param {Object} [options.excludeField] - 过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。
|
|
26
26
|
* @usage
|
|
27
27
|
*/
|
|
28
28
|
export class DataFlowService extends ServiceBase {
|
|
@@ -77,8 +77,8 @@ export class DataFlowService extends ServiceBase {
|
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* @function DataFlowService.prototype.setExcludeField
|
|
80
|
-
* @description
|
|
81
|
-
* @param {Object} excludeField -
|
|
80
|
+
* @description 设置过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。
|
|
81
|
+
* @param {Object} excludeField - 过滤字段。
|
|
82
82
|
*/
|
|
83
83
|
setExcludeField(excludeField) {
|
|
84
84
|
this.dataFlow.setExcludeField(excludeField);
|
|
@@ -88,8 +88,8 @@ export class DataFlowService extends ServiceBase {
|
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* @function DataFlowService.prototype.setGeometry
|
|
91
|
-
* @description
|
|
92
|
-
* @param {GeoJSONObject} geometry -
|
|
91
|
+
* @description 设置空间范围,只有在该范围内的要素才能被接收。
|
|
92
|
+
* @param {GeoJSONObject} geometry - 空间范围。
|
|
93
93
|
*/
|
|
94
94
|
setGeometry(geometry) {
|
|
95
95
|
this.dataFlow.setGeometry(geometry);
|
|
@@ -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 { ServiceBase } from './ServiceBase';
|
|
@@ -11,10 +11,10 @@ import { UpdateDatasetParameters } from '@supermapgis/iclient-common/iServer/Upd
|
|
|
11
11
|
* @category iServer Data Dataset
|
|
12
12
|
* @classdesc 数据集信息服务类。提供方法:查询数据集集合、查询指定数据集信息,在指定数据源下新增、修改、删除数据集等。
|
|
13
13
|
* @modulecategory Services
|
|
14
|
-
* @param {string} url -
|
|
14
|
+
* @param {string} url - 数据服务地址,如 http://{ip}:{port}/iserver/services/data-world/rest/data 。
|
|
15
15
|
* @param {Object} options - 参数。
|
|
16
16
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
17
|
-
* @param {boolean} [options.withCredentials
|
|
17
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
18
18
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
19
19
|
* @param {Object} [options.headers] - 请求头。
|
|
20
20
|
* @extends {ServiceBase}
|
|
@@ -34,7 +34,7 @@ export class DatasetService extends ServiceBase {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @function DatasetService.prototype.getDatasets
|
|
37
|
-
* @description
|
|
37
|
+
* @description 根据数据源名称查询该数据源下所有数据集的信息。
|
|
38
38
|
* @param {string} datasourceName - 数据源名称。
|
|
39
39
|
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
40
40
|
* @returns {Promise} Promise 对象。
|
|
@@ -48,7 +48,7 @@ export class DatasetService extends ServiceBase {
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* @function DatasetService.prototype.getDataset
|
|
51
|
-
* @description
|
|
51
|
+
* @description 根据数据源名称、数据集名称查询该数据集的信息
|
|
52
52
|
* @param {string} datasourceName - 数据源名称。
|
|
53
53
|
* @param {string} datasetName - 数据集名称。
|
|
54
54
|
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
@@ -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 {ServiceBase} from './ServiceBase';
|
|
@@ -10,10 +10,10 @@ import { SetDatasourceParameters } from '@supermapgis/iclient-common/iServer/Set
|
|
|
10
10
|
* @category iServer Data Datasource
|
|
11
11
|
* @classdesc 数据源服务类。提供方法:查询数据源集合、查询指定数据源信息、设置指定数据源信息。可以获取的数据源信息包括数据源名称、数据源描述、引擎类型、距离单位、坐标单位、投影信息等。
|
|
12
12
|
* @modulecategory Services
|
|
13
|
-
* @param {string} url -
|
|
13
|
+
* @param {string} url - 数据服务地址,如 http://{ip}:{port}/iserver/services/data-world/rest/data 。
|
|
14
14
|
* @param {Object} options - 参数。
|
|
15
15
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
16
|
-
* @param {boolean} [options.withCredentials
|
|
16
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
17
17
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
18
18
|
* @param {Object} [options.headers] - 请求头。
|
|
19
19
|
* @extends {ServiceBase}
|
|
@@ -33,7 +33,7 @@ export class DatasourceService extends ServiceBase {
|
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* @function DatasourceService.prototype.getDatasources
|
|
36
|
-
* @description
|
|
36
|
+
* @description 获取当前服务下所有数据源信息。
|
|
37
37
|
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
38
38
|
*/
|
|
39
39
|
getDatasources(callback) {
|
|
@@ -42,7 +42,7 @@ export class DatasourceService extends ServiceBase {
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @function DatasourceService.prototype.getDatasource
|
|
45
|
-
* @description
|
|
45
|
+
* @description 根据数据源名称获取指定数据源的信息。
|
|
46
46
|
* @param {string} datasourceName - 数据源名称。
|
|
47
47
|
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
48
48
|
* @returns {Promise} Promise 对象。
|
|
@@ -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 } from '@supermapgis/iclient-common/commontypes/Util';
|
|
@@ -7,24 +7,22 @@ import { EditFeaturesService } from '@supermapgis/iclient-common/iServer/EditFea
|
|
|
7
7
|
import { FeatureService as CommonFeatureService } from '@supermapgis/iclient-common/iServer/FeatureService';
|
|
8
8
|
import { Util } from '../core/Util';
|
|
9
9
|
import { ServiceBase } from './ServiceBase';
|
|
10
|
-
import GeoJSON from 'ol/format/GeoJSON';
|
|
11
|
-
import Geometry from 'ol/geom/Geometry';
|
|
12
10
|
import Polygon from 'ol/geom/Polygon';
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
13
|
* @class FeatureService
|
|
16
14
|
* @constructs FeatureService
|
|
17
15
|
* @category iServer Data Feature
|
|
18
|
-
* @classdesc 要素数据集类。提供:ID 查询,范围查询,SQL
|
|
16
|
+
* @classdesc 要素数据集类。提供:ID 查询,范围查询,SQL查询,空间查询,缓冲区查询,地物编辑,要素附件查询、编辑等方法。
|
|
19
17
|
* @modulecategory Services
|
|
20
18
|
* @example
|
|
21
19
|
* new FeatureService(url).getFeaturesByIDs(param,function(result){
|
|
22
20
|
* //doSomething
|
|
23
21
|
* })
|
|
24
|
-
* @param {string} url -
|
|
22
|
+
* @param {string} url - 数据服务地址,如 http://{ip}:{port}/iserver/services/data-world/rest/data 。
|
|
25
23
|
* @param {Object} options - 参数。
|
|
26
24
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
27
|
-
* @param {boolean} [options.withCredentials
|
|
25
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
28
26
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
29
27
|
* @param {Object} [options.headers] - 请求头。
|
|
30
28
|
* @extends {ServiceBase}
|
|
@@ -90,8 +88,8 @@ export class FeatureService extends ServiceBase {
|
|
|
90
88
|
|
|
91
89
|
/**
|
|
92
90
|
* @function FeatureService.prototype.getFeaturesByGeometry
|
|
93
|
-
* @description
|
|
94
|
-
* @param {GetFeaturesByGeometryParameters} params -
|
|
91
|
+
* @description 数据集空间查询服务类。
|
|
92
|
+
* @param {GetFeaturesByGeometryParameters} params - 数据集空间查询参数类。
|
|
95
93
|
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
96
94
|
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回的数据格式。
|
|
97
95
|
* @returns {Promise} Promise 对象。
|
|
@@ -200,8 +198,8 @@ export class FeatureService extends ServiceBase {
|
|
|
200
198
|
if (params.bounds) {
|
|
201
199
|
params.bounds = Util.toSuperMapBounds(params.bounds);
|
|
202
200
|
}
|
|
203
|
-
if (params.geometry
|
|
204
|
-
params.geometry = Util.toSuperMapGeometry(
|
|
201
|
+
if (params.geometry) {
|
|
202
|
+
params.geometry = Util.toSuperMapGeometry(params.geometry);
|
|
205
203
|
}
|
|
206
204
|
if (params.editType) {
|
|
207
205
|
params.editType = params.editType.toLowerCase();
|
|
@@ -229,10 +227,7 @@ export class FeatureService extends ServiceBase {
|
|
|
229
227
|
return geoFeature.toServerFeature({geometryFunction:(geometry)=>{
|
|
230
228
|
if(Array.isArray(geometry) && geometry.length === 4){
|
|
231
229
|
const polygon = new Polygon([[[geometry[0], geometry[1]], [geometry[2], geometry[1]], [geometry[2], geometry[3]], [geometry[0], geometry[3]]]]);
|
|
232
|
-
return Util.toSuperMapGeometry(
|
|
233
|
-
}
|
|
234
|
-
if(geometry.getExtent){
|
|
235
|
-
return Util.toSuperMapGeometry(new GeoJSON().writeGeometryObject(geometry));
|
|
230
|
+
return Util.toSuperMapGeometry(polygon);
|
|
236
231
|
}
|
|
237
232
|
return Util.toSuperMapGeometry(geometry);
|
|
238
233
|
}})
|
|
@@ -250,7 +245,7 @@ export class FeatureService extends ServiceBase {
|
|
|
250
245
|
if (geoFeature.getId()) {
|
|
251
246
|
feature.id = geoFeature.getId();
|
|
252
247
|
}
|
|
253
|
-
feature.geometry = Util.toSuperMapGeometry(
|
|
248
|
+
feature.geometry = Util.toSuperMapGeometry(geoFeature);
|
|
254
249
|
return feature;
|
|
255
250
|
}
|
|
256
251
|
|
package/services/FieldService.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 {ServiceBase} from './ServiceBase';
|
|
@@ -13,10 +13,10 @@ import { FieldService as CommonFieldService } from '@supermapgis/iclient-common/
|
|
|
13
13
|
* //doSomething
|
|
14
14
|
* });
|
|
15
15
|
* @modulecategory Services
|
|
16
|
-
* @param {string} url -
|
|
16
|
+
* @param {string} url - 数据服务地址,如 http://{ip}:{port}/iserver/services/data-world/rest/data 。
|
|
17
17
|
* @param {Object} options - 参数。
|
|
18
18
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
19
|
-
* @param {boolean} [options.withCredentials
|
|
19
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
20
20
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
21
21
|
* @param {Object} [options.headers] - 请求头。
|
|
22
22
|
* @extends {ServiceBase}
|
|
@@ -26,7 +26,7 @@ import { ServiceBase } from './ServiceBase';
|
|
|
26
26
|
console.log(serverResult);
|
|
27
27
|
});
|
|
28
28
|
})
|
|
29
|
-
* @param {string} url -
|
|
29
|
+
* @param {string} url - 处理自动化服务地址,如 http://{ip}:{port}/iserver/services/geoprocessing/restjsr/gp/v2 。
|
|
30
30
|
* @param {Object} options - 参数。
|
|
31
31
|
* @usage
|
|
32
32
|
*/
|
|
@@ -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 {ServiceBase} from './ServiceBase';
|
|
@@ -16,11 +16,10 @@ import { GetGridCellInfosService } from '@supermapgis/iclient-common/iServer/Get
|
|
|
16
16
|
* .getGridCellInfos(param,function(result){
|
|
17
17
|
* //doSomething
|
|
18
18
|
* })
|
|
19
|
-
* @param {string} url -
|
|
20
|
-
* http://{服务器地址}:{服务端口号}/iserver/services/{地图服务名}/rest/maps/{地图名}/tempLayersSet/{tempLayerID}/Rivers@World@@World。
|
|
19
|
+
* @param {string} url - 数据服务地址,如 http://{ip}:{port}/iserver/services/data-world/rest/data 。
|
|
21
20
|
* @param {Object} options - 参数。
|
|
22
21
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
23
|
-
* @param {boolean} [options.withCredentials
|
|
22
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
24
23
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
25
24
|
* @param {Object} [options.headers] - 请求头。
|
|
26
25
|
* @usage
|
|
@@ -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 { ServiceBase } from './ServiceBase';
|
|
@@ -16,11 +16,11 @@ import CommonMatchImageCollectionService from '@supermapgis/iclient-common/iServ
|
|
|
16
16
|
* new ImageCollectionService(url,options).getLegend(queryParams,function(result){
|
|
17
17
|
* //doSomething
|
|
18
18
|
* })
|
|
19
|
-
* @param {string} url -
|
|
19
|
+
* @param {string} url - 影像服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/
|
|
20
20
|
* @param {Object} options - 参数。
|
|
21
21
|
* @param {string} options.collectionId 影像集合(Collection)的 ID,在一个影像服务中唯一标识影像集合。
|
|
22
22
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
23
|
-
* @param {boolean} [options.withCredentials
|
|
23
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
24
24
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
25
25
|
* @param {Object} [options.headers] - 请求头。
|
|
26
26
|
* @usage
|
package/services/ImageService.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 { ServiceBase } from './ServiceBase';
|
|
@@ -17,10 +17,10 @@ import CommonMatchImageService from '@supermapgis/iclient-common/iServer/ImageSe
|
|
|
17
17
|
* ImageService(url,options).getCollections(function(result){
|
|
18
18
|
* //doSomething
|
|
19
19
|
* })
|
|
20
|
-
* @param {string} url -
|
|
20
|
+
* @param {string} url - 影像服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/
|
|
21
21
|
* @param {Object} options - 参数。
|
|
22
22
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
23
|
-
* @param {boolean} [options.withCredentials
|
|
23
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
24
24
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
25
25
|
* @param {Object} [options.headers] - 请求头。
|
|
26
26
|
* @usage
|
|
@@ -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 { ServiceBase } from './ServiceBase';
|
|
@@ -16,10 +16,10 @@ import { KnowledgeGraphService as CommonKnowledgeGraphService } from '@supermapg
|
|
|
16
16
|
* //doSomething
|
|
17
17
|
* })
|
|
18
18
|
* @extends {ServiceBase}
|
|
19
|
-
* @param {string} url -
|
|
19
|
+
* @param {string} url - 知识图谱服务地址,如 http://{ip}:{port}/iserver/services/knowledgeGraph-test/restjsr/graph 。
|
|
20
20
|
* @param {Object} options -参数。
|
|
21
21
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
22
|
-
* @param {boolean} [options.withCredentials
|
|
22
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
23
23
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
24
24
|
* @param {Object} [options.headers] - 请求头。
|
|
25
25
|
* @usage
|
|
@@ -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 {ServiceBase} from './ServiceBase';
|
|
@@ -13,7 +13,7 @@ import { LayerInfoService as CommonLayerInfoService } from '@supermapgis/iclient
|
|
|
13
13
|
* new LayerInfoService(url).getLayersInfo(function(result){
|
|
14
14
|
* //doSomething
|
|
15
15
|
* })
|
|
16
|
-
* @param {string} url -
|
|
16
|
+
* @param {string} url - 地图服务地址。请求地图服务,URL 应为:
|
|
17
17
|
* http://{服务器地址}:{服务端口号}/iserver/services/{地图服务名}/rest/maps/{地图名}/tempLayersSet/{tempLayerID}/Rivers@World@@World"。
|
|
18
18
|
* @param {Object} options - 参数。
|
|
19
19
|
* @param {string} [options.proxy] - 服务代理地址。
|
package/services/MapService.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 { ServiceBase } from './ServiceBase';
|
|
@@ -11,10 +11,10 @@ import { TilesetsService } from '@supermapgis/iclient-common/iServer/TilesetsSer
|
|
|
11
11
|
* @classdesc 地图信息服务类。通过该类可以获得地图的基本信息、投影信息、切片列表信息等等。
|
|
12
12
|
* @modulecategory Services
|
|
13
13
|
* @extends {ServiceBase}
|
|
14
|
-
* @param {string} url -
|
|
14
|
+
* @param {string} url - 地图服务地址,如 http://{ip}:{port}/iserver/services/map-world/rest/maps/World 。
|
|
15
15
|
* @param {Object} options - 参数。
|
|
16
16
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
17
|
-
* @param {boolean} [options.withCredentials
|
|
17
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
18
18
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
19
19
|
* @param {Object} [options.headers] - 请求头。
|
|
20
20
|
* @example
|
|
@@ -1,10 +1,9 @@
|
|
|
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} from '../core/Util';
|
|
5
5
|
import {ServiceBase} from './ServiceBase';
|
|
6
6
|
import { MeasureService as CommonMeasureService } from '@supermapgis/iclient-common/iServer/MeasureService';
|
|
7
|
-
import GeoJSON from 'ol/format/GeoJSON';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* @class MeasureService
|
|
@@ -12,10 +11,10 @@ import GeoJSON from 'ol/format/GeoJSON';
|
|
|
12
11
|
* @classdesc 量算服务类。提供方法:面积量算、距离量算等。
|
|
13
12
|
* @modulecategory Services
|
|
14
13
|
* @extends {ServiceBase}
|
|
15
|
-
* @param {string} url -
|
|
14
|
+
* @param {string} url - 地图服务地址。如:http://localhost:8090/iserver/services/map-world/rest/maps/World+Map 。
|
|
16
15
|
* @param {Object} options - 参数。
|
|
17
16
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
18
|
-
* @param {boolean} [options.withCredentials
|
|
17
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
19
18
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
20
19
|
* @param {Object} [options.headers] - 请求头。
|
|
21
20
|
* @usage
|
|
@@ -70,7 +69,7 @@ export class MeasureService extends ServiceBase {
|
|
|
70
69
|
|
|
71
70
|
_processParam(params) {
|
|
72
71
|
if (params && params.geometry) {
|
|
73
|
-
params.geometry = Util.toSuperMapGeometry(
|
|
72
|
+
params.geometry = Util.toSuperMapGeometry(params.geometry);
|
|
74
73
|
}
|
|
75
74
|
return params;
|
|
76
75
|
}
|
|
@@ -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 {ServiceBase} from './ServiceBase';
|
|
@@ -13,12 +13,10 @@ import { NetworkAnalyst3DService as CommonNetworkAnalyst3DService } from '@super
|
|
|
13
13
|
* new NetworkAnalyst3DService(url).sinksFacilityAnalyst(params,function(result){
|
|
14
14
|
* //doSomething
|
|
15
15
|
* })
|
|
16
|
-
* @param {string} url -
|
|
17
|
-
* http://{服务器地址}:{服务端口号}/iserver/services/{网络分析服务名}/rest/networkanalyst/{网络数据集@数据源};
|
|
18
|
-
* 例如:"http://localhost:8090/iserver/services/components-rest/rest/networkanalyst/RoadNet@Changchun"。
|
|
16
|
+
* @param {string} url - 三维网络分析服务地址。
|
|
19
17
|
* @param {Object} options - 参数。
|
|
20
18
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
21
|
-
* @param {boolean} [options.withCredentials
|
|
19
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
22
20
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
23
21
|
* @param {Object} [options.headers] - 请求头。
|
|
24
22
|
* @usage
|
|
@@ -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 { DataFormat } from '@supermapgis/iclient-common/REST';
|
|
@@ -18,12 +18,10 @@ import Point from 'ol/geom/Point';
|
|
|
18
18
|
* new NetworkAnalystService(url).findPath(params,function(result){
|
|
19
19
|
* //doSomething
|
|
20
20
|
* })
|
|
21
|
-
* @param {string} url -
|
|
22
|
-
* http://{服务器地址}:{服务端口号}/iserver/services/{网络分析服务名}/rest/networkanalyst/{网络数据集@数据源};<br>
|
|
23
|
-
* 例如: "http://localhost:8090/iserver/services/test/rest/networkanalyst/WaterNet@FacilityNet"。
|
|
21
|
+
* @param {string} url - 网络分析服务地址,如 http://{ip}:{port}/iserver/services/{网络分析服务名}/rest/networkanalyst/{网络数据集@数据源}。
|
|
24
22
|
* @param {Object} options - 参数。
|
|
25
23
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
26
|
-
* @param {boolean} [options.withCredentials
|
|
24
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
27
25
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
28
26
|
* @param {Object} [options.headers] - 请求头。
|
|
29
27
|
* @usage
|
|
@@ -78,7 +76,7 @@ export class NetworkAnalystService extends ServiceBase {
|
|
|
78
76
|
/**
|
|
79
77
|
* @function NetworkAnalystService.prototype.traceAnalyst
|
|
80
78
|
* @description 上游/下游 追踪分析服务。<br>
|
|
81
|
-
*
|
|
79
|
+
* 查找给定弧段或结点的上游/下游弧段和结点。
|
|
82
80
|
* @version 11.1.1
|
|
83
81
|
* @param {TraceAnalystParameters} params - 上游/下游 追踪分析服务参数类。
|
|
84
82
|
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
@@ -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 { DataFormat } from '@supermapgis/iclient-common/REST';
|
|
@@ -17,10 +17,10 @@ import {ServiceBase} from './ServiceBase';
|
|
|
17
17
|
* new ProcessingService(url,options).getKernelDensityJobs(function(result){
|
|
18
18
|
* //doSomething
|
|
19
19
|
* })
|
|
20
|
-
* @param {string} url -
|
|
20
|
+
* @param {string} url - 分布式分析服务地址,如 http://{ip}:{port}/iserver/services/distributedanalyst/rest/v1/jobs 。
|
|
21
21
|
* @param {Object} options - 参数。
|
|
22
22
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
23
|
-
* @param {boolean} [options.withCredentials
|
|
23
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
24
24
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
25
25
|
* @param {Object} [options.headers] - 请求头。
|
|
26
26
|
* @usage
|
package/services/QueryService.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';
|
|
@@ -7,19 +7,18 @@ import {Util} from '../core/Util';
|
|
|
7
7
|
import {ServiceBase} from './ServiceBase';
|
|
8
8
|
import { QueryService as CommonQueryService } from '@supermapgis/iclient-common/iServer/QueryService';
|
|
9
9
|
import Point from 'ol/geom/Point';
|
|
10
|
-
import GeoJSON from 'ol/format/GeoJSON';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* @class QueryService
|
|
14
13
|
* @category iServer Map QueryResults
|
|
15
14
|
* @classdesc 地图查询服务类。
|
|
16
|
-
* 提供:范围查询,SQL
|
|
15
|
+
* 提供:范围查询,SQL 查询,空间查询,距离查询。
|
|
17
16
|
* @modulecategory Services
|
|
18
17
|
* @extends {ServiceBase}
|
|
19
|
-
* @param {string} url -
|
|
18
|
+
* @param {string} url - 地图服务地址,如 http://{ip}:{port}/iserver/services/map-world/rest/maps/World 。
|
|
20
19
|
* @param {Object} options - 参数。
|
|
21
20
|
* @param {string} [options.proxy] - 服务代理地址。
|
|
22
|
-
* @param {boolean} [options.withCredentials
|
|
21
|
+
* @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
|
|
23
22
|
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
|
|
24
23
|
* @param {Object} [options.headers] - 请求头。
|
|
25
24
|
* @example
|
|
@@ -38,7 +37,7 @@ export class QueryService extends ServiceBase {
|
|
|
38
37
|
|
|
39
38
|
/**
|
|
40
39
|
* @function QueryService.prototype.queryByBounds
|
|
41
|
-
* @description
|
|
40
|
+
* @description 范围查询。查询指定矩形范围内的要素,以及外接矩形与指定范围相交的几何对象。
|
|
42
41
|
* @param {QueryByBoundsParameters} params - 范围查询参数类。
|
|
43
42
|
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
44
43
|
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
@@ -77,8 +76,8 @@ export class QueryService extends ServiceBase {
|
|
|
77
76
|
|
|
78
77
|
/**
|
|
79
78
|
* @function QueryService.prototype.queryByGeometry
|
|
80
|
-
* @description
|
|
81
|
-
* @param {QueryByGeometryParameters} params -
|
|
79
|
+
* @description 空间查询。查询与指定的几何对象符合某种空间关系和查询条件的要素。
|
|
80
|
+
* @param {QueryByGeometryParameters} params - 空间查询参数类。
|
|
82
81
|
* @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
|
|
83
82
|
* @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
|
|
84
83
|
* @returns {Promise} Promise 对象。
|
|
@@ -108,7 +107,7 @@ export class QueryService extends ServiceBase {
|
|
|
108
107
|
if (params.geometry instanceof Point) {
|
|
109
108
|
params.geometry = new GeometryPoint(params.geometry.getCoordinates()[0], params.geometry.getCoordinates()[1]);
|
|
110
109
|
} else {
|
|
111
|
-
params.geometry = Util.toSuperMapGeometry(
|
|
110
|
+
params.geometry = Util.toSuperMapGeometry(params.geometry);
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
return params;
|