@supermapgis/iclient-ol 12.1.0-r → 12.1.3

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 (37) hide show
  1. package/dist/iclient-openlayers-es6.js +7649 -4976
  2. package/dist/iclient-openlayers-es6.min.js +2 -2
  3. package/dist/iclient-openlayers.css +1 -1
  4. package/dist/iclient-openlayers.js +4571 -1303
  5. package/dist/iclient-openlayers.min.css +1 -1
  6. package/dist/iclient-openlayers.min.js +2 -2
  7. package/mapping/ImageSuperMapRest.js +13 -0
  8. package/mapping/ImageTileSuperMapRest.js +1 -1
  9. package/mapping/TileSuperMapRest.js +76 -10
  10. package/mapping/WebMap.js +11 -1
  11. package/overlay/DataFlow.js +4 -4
  12. package/overlay/theme/Theme.js +1 -1
  13. package/package.json +2 -2
  14. package/services/AddressMatchService.js +1 -1
  15. package/services/ChartService.js +1 -1
  16. package/services/DataFlowService.js +7 -7
  17. package/services/DatasetService.js +3 -3
  18. package/services/DatasourceService.js +3 -3
  19. package/services/FeatureService.js +4 -4
  20. package/services/FieldService.js +1 -1
  21. package/services/GeoprocessingService.js +1 -1
  22. package/services/GridCellInfosService.js +1 -2
  23. package/services/ImageCollectionService.js +1 -1
  24. package/services/ImageService.js +1 -1
  25. package/services/KnowledgeGraphService.js +1 -1
  26. package/services/LayerInfoService.js +1 -1
  27. package/services/MapService.js +1 -1
  28. package/services/MeasureService.js +1 -1
  29. package/services/NetworkAnalyst3DService.js +1 -3
  30. package/services/NetworkAnalystService.js +2 -4
  31. package/services/ProcessingService.js +1 -1
  32. package/services/QueryService.js +5 -5
  33. package/services/ServiceBase.js +1 -1
  34. package/services/SpatialAnalystService.js +1 -1
  35. package/services/ThemeService.js +3 -2
  36. package/services/TrafficTransferAnalystService.js +1 -1
  37. package/services/WebPrintingJobService.js +1 -1
@@ -39,6 +39,16 @@ import { containsExtent, getCenter, getHeight, getWidth, getForViewAndSize } fro
39
39
  * @param {string} [options.tileversion] - 切片版本名称,_cache 为 true 时有效。
40
40
  * @param {string} [options.tileProxy] - 代理地址。
41
41
  * @param {NDVIParameter|HillshadeParameter} [options.rasterfunction] - 栅格分析参数。
42
+ * @param {Object} [options.displayFilters] - 图层的显示过滤条件,利用该参数控制图层中可显示的要素。
43
+ * 参数结构:
44
+ * {
45
+ * "<layerName1>": "{displayFilter}",
46
+ * "<layerName2>": "{displayFilter}"
47
+ * }
48
+ * 其中,
49
+ * <layerName> 为地图中某图层名称,可从 layer 资源响应体参数 name 中获取;
50
+ * {displayFilter} 为属性过滤条件,仅对数据中存在的属性生效。
51
+ * 当前仅支持对工作空间数据源发布的地图进行属性过滤,支持对多图层同时过滤。
42
52
  * @param {string} [options.format = 'png'] - 瓦片表述类型,支持 "png" 、"webp"、"bmp" 、"jpg"、"gif" 等图片类型。
43
53
  * @deprecated {Function} [options.imageLoadFunction] - 加载图片的方法。默认为function(imageTile, src) {imageTile.getImage().src = src;};
44
54
  * @param {string} [options.ratio=1.5] - 请求图片大小比例。 1 表示请求图片大小和地图视窗范围一致,2 表示请求图片大小是地图视窗范围的2倍,以此类推。
@@ -124,6 +134,9 @@ export class ImageSuperMapRest extends ImageSource {
124
134
  if (options.rasterfunction) {
125
135
  params['rasterfunction'] = JSON.stringify(options.rasterfunction);
126
136
  }
137
+ if (options.displayFilters) {
138
+ params['displayFilters'] = JSON.stringify(options.displayFilters);
139
+ }
127
140
  //是否反走样地图,默认为false
128
141
  if (options.antialias !== undefined) {
129
142
  params['antialias'] = options.antialias;
@@ -21,7 +21,7 @@ import { Util as CommonUtil } from '@supermapgis/iclient-common/commontypes/Util
21
21
  * @param {Array.<string>} [options.names] 返回影像集合中指定名称影像的瓦片资源。影像名称包含文件后缀,如 S-60-45.tif。
22
22
  * @param {string} [options.format='png'] - 瓦片表述类型,瓦片格式目前支持 png、jpg 和 webp 三种格式。
23
23
  * @param {boolean} [options.transparent=true] - 瓦片是否透明。默认透明。
24
- * @param {boolean} [options.cacheEnabled=true] - 是否启用缓存。
24
+ * @param {boolean} [options.cacheEnabled=true] - 是否缓存到本地。为 true 时,访问发布的服务时就可以在本地生成地图瓦片,从而可以提高后续服务浏览访问的速度。
25
25
  * @param {string} [options.tileProxy] - 代理地址。
26
26
  * @param {string} [options.attribution='Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>'] - 版权描述信息。
27
27
  * @extends {ol.source.XYZ}
@@ -7,20 +7,59 @@ import { Util as CommonUtil } from '@supermapgis/iclient-common/commontypes/Util
7
7
  import { ServerGeometry } from '@supermapgis/iclient-common/iServer/ServerGeometry';
8
8
  import { Util } from '../core/Util';
9
9
  import TileImage from 'ol/source/TileImage';
10
+ import TileRange from 'ol/TileRange';
10
11
  import Geometry from 'ol/geom/Geometry';
11
12
  import * as olSize from 'ol/size';
12
13
  import * as olTilegrid from 'ol/tilegrid';
13
14
  import TileGrid from 'ol/tilegrid/TileGrid';
14
15
 
16
+ function getOverflowTileCount(overflowTiles) {
17
+ return Math.max(0, Math.floor(Number(overflowTiles) || 0));
18
+ }
19
+
20
+ function wrapTileGridWithOverflow(tileGrid, overflowTiles) {
21
+ const overflowTileCount = getOverflowTileCount(overflowTiles);
22
+ if (!tileGrid || !overflowTileCount) {
23
+ return tileGrid;
24
+ }
25
+
26
+ const wrappedTileGrid = Object.create(tileGrid);
27
+ wrappedTileGrid.overflowTiles = overflowTileCount;
28
+ wrappedTileGrid.getTileRangeForExtentAndZ = function (extent, z, tempTileRange) {
29
+ const tileRange = tileGrid.getTileRangeForExtentAndZ(extent, z, tempTileRange);
30
+ if (!tileRange) {
31
+ return tileRange;
32
+ }
33
+ tileRange.minX -= overflowTileCount;
34
+ tileRange.maxX += overflowTileCount;
35
+ tileRange.minY -= overflowTileCount;
36
+ tileRange.maxY += overflowTileCount;
37
+ return tileRange;
38
+ };
39
+ wrappedTileGrid.getFullTileRange = function (z) {
40
+ const tileRange = tileGrid.getFullTileRange ? tileGrid.getFullTileRange(z) : null;
41
+ if (!tileRange) {
42
+ return tileRange;
43
+ }
44
+ return new TileRange(
45
+ tileRange.minX - overflowTileCount,
46
+ tileRange.maxX + overflowTileCount,
47
+ tileRange.minY - overflowTileCount,
48
+ tileRange.maxY + overflowTileCount
49
+ );
50
+ };
51
+ return wrappedTileGrid;
52
+ }
53
+
15
54
  /**
16
55
  * @class TileSuperMapRest
17
56
  * @browsernamespace ol.source
18
57
  * @category iServer Map Tile
19
58
  * @modulecategory Mapping
20
- * @classdesc SuperMap iServer TileImage 图层源。
59
+ * @classdesc 以地图瓦片的方式展示 SuperMap iServer 的 REST 地图服务的地图。它通过调用 TileImage 接口获取地图瓦片。
21
60
  * @param {Object} options - 参数。
22
- * @param {string} options.url - 服务地址,例如: http://{ip}:{port}/iserver/services/map-world/rest/maps/World。
23
- * @param {Array.<string>} options.urls - 服务地址数组,例如: http://{ip}:{port}/iserver/services/map-world/rest/maps/World。
61
+ * @param {string} options.url - 服务地址,例如: http://{ip}:{port}/iserver/services/map-world/rest/maps/World。
62
+ * @param {Array.<string>} options.urls - 服务地址数组,例如: http://{ip}:{port}/iserver/services/map-world/rest/maps/World。
24
63
  * @param {ol.tilegrid.TileGrid} [options.tileGrid] - 瓦片网格对象。当不指定时,会通过 options.extent 或投影范围生成。
25
64
  * @param {boolean} [options.redirect = false] - 是否重定向。
26
65
  * @param {boolean} [options.transparent = true] - 瓦片是否透明。
@@ -35,7 +74,18 @@ import TileGrid from 'ol/tilegrid/TileGrid';
35
74
  * @param {string} [options.tileProxy] - 服务代理地址。
36
75
  * @param {string} [options.format = 'png'] - 瓦片表述类型,支持 "png" 、"webp"、"bmp" 、"jpg"、"gif" 等图片类型。
37
76
  * @param {(NDVIParameter|HillshadeParameter)} [options.rasterfunction] - 栅格分析参数。
77
+ * @param {Object} [options.displayFilters] - 图层的显示过滤条件,利用该参数控制图层中可显示的要素。
78
+ * 参数结构:
79
+ * {
80
+ * "&lt;layerName1&gt;": "{displayFilter}",
81
+ * "&lt;layerName2&gt;": "{displayFilter}"
82
+ * }
83
+ * 其中,
84
+ * &lt;layerName&gt; 为地图中某图层名称,可从 layer 资源响应体参数 name 中获取;
85
+ * {displayFilter} 为属性过滤条件,仅对数据中存在的属性生效。
86
+ * 当前仅支持对工作空间数据源发布的地图进行属性过滤,支持对多图层同时过滤。
38
87
  * @param {ChartSettingS57|ChartSettingS100} [options.chartSetting] - 海图显示参数设置类,用于管理海图显示环境,包括海图的显示模式、显示类型名称、颜色模式、安全水深线等各种显示风格。
88
+ * @param {number} [options.overflowTiles = 0] - 在当前视口范围外额外渲染的瓦片圈数。为 1 时上下左右各多请求一圈瓦片,可用于缓解符号在图层范围边缘被裁切的问题。
39
89
  * @extends {ol.source.TileImage}
40
90
  * @usage
41
91
  */
@@ -46,6 +96,7 @@ export class TileSuperMapRest extends TileImage {
46
96
  options.attributions || 'Map Data <span>© SuperMap iServer</span> with <span>© SuperMap iClient</span>';
47
97
 
48
98
  options.format = options.format ? options.format : 'png';
99
+ const tileGrid = wrapTileGridWithOverflow(options.tileGrid, options.overflowTiles);
49
100
 
50
101
  super({
51
102
  attributions: options.attributions,
@@ -57,7 +108,7 @@ export class TileSuperMapRest extends TileImage {
57
108
  reprojectionErrorThreshold: options.reprojectionErrorThreshold,
58
109
  state: options.state,
59
110
  tileClass: options.tileClass,
60
- tileGrid: options.tileGrid,
111
+ tileGrid: tileGrid,
61
112
  tileLoadFunction: options.tileLoadFunction,
62
113
  tilePixelRatio: options.tilePixelRatio,
63
114
  tileUrlFunction: options.tileUrlFunction || tileUrlFunction,
@@ -68,10 +119,12 @@ export class TileSuperMapRest extends TileImage {
68
119
  if (options.tileProxy) {
69
120
  this.tileProxy = options.tileProxy;
70
121
  }
122
+ options.tileGrid = tileGrid;
71
123
  this.options = options;
72
124
  //当前切片在切片集中的index
73
125
  this.tileSetsIndex = -1;
74
126
  this.tempIndex = -1;
127
+ this._paramsVersion = 0;
75
128
  this.dpi = this.options.dpi || 96;
76
129
  if (options.url) {
77
130
  this._urls = expandUrl(options.url);
@@ -138,6 +191,9 @@ export class TileSuperMapRest extends TileImage {
138
191
  if (options.rasterfunction) {
139
192
  params['rasterfunction'] = JSON.stringify(options.rasterfunction);
140
193
  }
194
+ if (options.displayFilters) {
195
+ params['displayFilters'] = JSON.stringify(options.displayFilters);
196
+ }
141
197
  if (options.chartSetting) {
142
198
  params['chartSetting'] = JSON.stringify(options.chartSetting);
143
199
  }
@@ -218,19 +274,25 @@ export class TileSuperMapRest extends TileImage {
218
274
  function tileUrlFunction(tileCoord, pixelRatio, projection) {
219
275
  if (!me.tileGrid) {
220
276
  if (options.extent) {
221
- me.tileGrid = TileSuperMapRest.createTileGrid(options.extent);
277
+ me.tileGrid = wrapTileGridWithOverflow(TileSuperMapRest.createTileGrid(options.extent), options.overflowTiles);
222
278
  if (me.resolutions) {
223
279
  me.tileGrid.resolutions = me.resolutions;
224
280
  }
225
281
  } else {
226
282
  if (projection.getCode() === 'EPSG:3857') {
227
- me.tileGrid = TileSuperMapRest.createTileGrid([
228
- -20037508.3427892, -20037508.3427892, 20037508.3427892, 20037508.3427892
229
- ]);
283
+ me.tileGrid = wrapTileGridWithOverflow(
284
+ TileSuperMapRest.createTileGrid([
285
+ -20037508.3427892, -20037508.3427892, 20037508.3427892, 20037508.3427892
286
+ ]),
287
+ options.overflowTiles
288
+ );
230
289
  me.extent = [-20037508.3427892, -20037508.3427892, 20037508.3427892, 20037508.3427892];
231
290
  }
232
291
  if (projection.getCode() === 'EPSG:4326') {
233
- me.tileGrid = TileSuperMapRest.createTileGrid([-180, -90, 180, 90]);
292
+ me.tileGrid = wrapTileGridWithOverflow(
293
+ TileSuperMapRest.createTileGrid([-180, -90, 180, 90]),
294
+ options.overflowTiles
295
+ );
234
296
  me.extent = [-180, -90, 180, 90];
235
297
  }
236
298
  }
@@ -414,8 +476,12 @@ export class TileSuperMapRest extends TileImage {
414
476
  * @version 11.2.0
415
477
  */
416
478
  updateParams(params) {
417
- Object.assign(this.requestParams, params);
479
+ Object.assign(this.options, params);
480
+ if (this.requestParams) {
481
+ Object.assign(this.requestParams, params);
482
+ }
418
483
  this._paramsChanged = true;
484
+ this.setKey(String(++this._paramsVersion));
419
485
  this.refresh();
420
486
  }
421
487
  }
package/mapping/WebMap.js CHANGED
@@ -111,6 +111,7 @@ const WMTS_ARRAY_NODE_PATHS = [
111
111
  * @param {function} [options.mapSetting.controls] - 地图的控件。
112
112
  * @param {function} [options.mapSetting.interactions] - 地图控制的参数。
113
113
  * @param {number} [options.restDataSingleRequestCount=1000] - 自定义 restData 分批请求,单次请求数量。
114
+ * @param {number} [options.overflowTiles=0] - RestMap 栅格图层瓦片范围向外扩大的圈数。
114
115
  * @extends {ol.Observable}
115
116
  * @usage
116
117
  */
@@ -142,6 +143,7 @@ export class WebMap extends Observable {
142
143
  this.webMap = options.webMap;
143
144
  this.tileFormat = options.tileFormat && options.tileFormat.toLowerCase();
144
145
  this.restDataSingleRequestCount = options.restDataSingleRequestCount || 1000;
146
+ this.overflowTiles = typeof options.overflowTiles === 'undefined' ? 1 : options.overflowTiles;
145
147
  this.tileRequestParameters = options.tileRequestParameters;
146
148
  this.createMap(options.mapSetting);
147
149
  if (this.webMap) {
@@ -1314,6 +1316,10 @@ export class WebMap extends Observable {
1314
1316
  ) {
1315
1317
  options.tileProxy = this.server + 'apps/viewer/getUrlResource.png?url=';
1316
1318
  }
1319
+ if(this.overflowTiles) {
1320
+ options.overflowTiles = this.overflowTiles;
1321
+ layerInfo.restMapExtentExpanded = true;
1322
+ }
1317
1323
  let source = new TileSuperMapRest(options);
1318
1324
  SecurityManager[`register${keyfix}`](layerInfo.url);
1319
1325
  return source;
@@ -1401,7 +1407,11 @@ export class WebMap extends Observable {
1401
1407
  getLayerOtherOptions(layerInfo) {
1402
1408
  const { layerType, extent, minZoom, maxZoom } = layerInfo;
1403
1409
  const extentVal = layerType === 'ZXY_TILE' ? this._getZXYTileMapBounds(layerInfo) : extent;
1404
- const options = { extent: extentVal };
1410
+ const options = {};
1411
+ if (!layerInfo.restMapExtentExpanded) {
1412
+ // 扩大 RestMap 栅格图层的 tileGrid 后,不再向图层传递 extent
1413
+ options.extent = extentVal;
1414
+ }
1405
1415
  if (typeof minZoom === 'number' && minZoom !== 0) {
1406
1416
  options.minZoom = minZoom - 1;
1407
1417
  }
@@ -13,9 +13,9 @@ import GeoJSON from 'ol/format/GeoJSON';
13
13
  * @param {Object} opt_options - 参数。
14
14
  * @param {string} opt_options.ws - SuperMap iServer 数据流服务地址,例如:http://localhost:8090/iserver/services/dataflowTest/dataflow。
15
15
  * @param {string} [opt_options.idField = 'id'] - 要素属性中表示唯一标识的字段。
16
- * @param {GeoJSONObject} [opt_options.geometry] - 指定几何范围,只有在该范围内的要素才能被订阅。
16
+ * @param {GeoJSONObject} [opt_options.geometry] - 空间范围,只有在该范围内的要素才能被接收。
17
17
  * @param {Object} [opt_options.prjCoordSys] - 请求的地图的坐标参考系统。当此参数设置的坐标系统不同于地图的原有坐标系统时,系统会进行动态投影,并返回动态投影后的地图瓦片。例如:{"epsgCode":3857}。
18
- * @param {Object} [opt_options.excludeField] - 排除字段。
18
+ * @param {Object} [opt_options.excludeField] - 过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。
19
19
  * @extends {ol.source.Vector}
20
20
  * @example
21
21
  * var source = new DataFlow({
@@ -69,8 +69,8 @@ export class DataFlow extends VectorSource {
69
69
 
70
70
  /**
71
71
  * @function DataFlow.prototype.setExcludeField
72
- * @description 设置唯一字段。
73
- * @param {Object} excludeField - 排除字段。
72
+ * @description 设置过滤字段。传入此参数,接收到的信息将不包含过滤掉的字段。
73
+ * @param {Object} excludeField - 过滤字段。
74
74
  */
75
75
  setExcludeField(excludeField) {
76
76
  this.dataService.setExcludeField(excludeField);
@@ -19,7 +19,7 @@ import GeoJSON from 'ol/format/GeoJSON';
19
19
  * @class Theme
20
20
  * @browsernamespace ol.source
21
21
  * @category Visualization Theme
22
- * @classdesc 专题图基类。地图学中将突出而深入地表示一种或几种要素或现象,即集中表示一个主题内容的地图称为专题地图。
22
+ * @classdesc 专题图基类。地图学中将突出而深入地表示一种或几种要素或现象,即集中表示一个主题内容的地图称为专题地图。<br>
23
23
  * 在 SuperMap 中,专题图是地图图层的符号化显示,即用各种图形渲染风格(大小,颜色,线型,填充等)来图形化地表现专题要素的某方面特征。
24
24
  * 调用建议:使用其子类实现该类。
25
25
  * @modulecategory Overlay
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@supermapgis/iclient-ol",
3
3
  "description": "",
4
- "version": "12.1.0-r",
4
+ "version": "12.1.3",
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.1.0-r",
18
+ "@supermapgis/iclient-common": "12.1.3",
19
19
  "@supermapgis/tile-decryptor": "^1.0.0",
20
20
  "@turf/turf": "7.2.0",
21
21
  "mapv": "2.0.62",
@@ -14,7 +14,7 @@ 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
20
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -22,7 +22,7 @@ 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
26
  * @param {string} [dataUrl] - 数据服务地址。
27
27
  * @param {Object} options - 参数。
28
28
  * @param {string} [options.proxy] - 服务代理地址。
@@ -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
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);
@@ -11,7 +11,7 @@ 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
17
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -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 获取结果。
@@ -10,7 +10,7 @@ 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
16
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -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 对象。
@@ -13,13 +13,13 @@ import Polygon from 'ol/geom/Polygon';
13
13
  * @class FeatureService
14
14
  * @constructs FeatureService
15
15
  * @category iServer Data Feature
16
- * @classdesc 要素数据集类。提供:ID 查询,范围查询,SQL查询,几何查询,缓冲区查询,地物编辑,要素附件查询、编辑等方法。
16
+ * @classdesc 要素数据集类。提供:ID 查询,范围查询,SQL查询,空间查询,缓冲区查询,地物编辑,要素附件查询、编辑等方法。
17
17
  * @modulecategory Services
18
18
  * @example
19
19
  * new FeatureService(url).getFeaturesByIDs(param,function(result){
20
20
  * //doSomething
21
21
  * })
22
- * @param {string} url - 服务地址。
22
+ * @param {string} url - 数据服务地址,如 http://{ip}:{port}/iserver/services/data-world/rest/data 。
23
23
  * @param {Object} options - 参数。
24
24
  * @param {string} [options.proxy] - 服务代理地址。
25
25
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -88,8 +88,8 @@ export class FeatureService extends ServiceBase {
88
88
 
89
89
  /**
90
90
  * @function FeatureService.prototype.getFeaturesByGeometry
91
- * @description 数据集几何查询服务类。
92
- * @param {GetFeaturesByGeometryParameters} params - 数据集几何查询参数类。
91
+ * @description 数据集空间查询服务类。
92
+ * @param {GetFeaturesByGeometryParameters} params - 数据集空间查询参数类。
93
93
  * @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
94
94
  * @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回的数据格式。
95
95
  * @returns {Promise} Promise 对象。
@@ -13,7 +13,7 @@ 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
19
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -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
  */
@@ -16,8 +16,7 @@ import { GetGridCellInfosService } from '@supermapgis/iclient-common/iServer/Get
16
16
  * .getGridCellInfos(param,function(result){
17
17
  * //doSomething
18
18
  * })
19
- * @param {string} url - 服务地址。请求地图服务,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
22
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -16,7 +16,7 @@ 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 - 服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/
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] - 服务代理地址。
@@ -17,7 +17,7 @@ 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 - 服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/
20
+ * @param {string} url - 影像服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/
21
21
  * @param {Object} options - 参数。
22
22
  * @param {string} [options.proxy] - 服务代理地址。
23
23
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -16,7 +16,7 @@ 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
22
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -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 - 服务地址。请求地图服务,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] - 服务代理地址。
@@ -11,7 +11,7 @@ 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
17
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -11,7 +11,7 @@ import { MeasureService as CommonMeasureService } from '@supermapgis/iclient-com
11
11
  * @classdesc 量算服务类。提供方法:面积量算、距离量算等。
12
12
  * @modulecategory Services
13
13
  * @extends {ServiceBase}
14
- * @param {string} url - 服务地址。如:http://localhost:8090/iserver/services/map-world/rest/maps/World+Map 。
14
+ * @param {string} url - 地图服务地址。如:http://localhost:8090/iserver/services/map-world/rest/maps/World+Map 。
15
15
  * @param {Object} options - 参数。
16
16
  * @param {string} [options.proxy] - 服务代理地址。
17
17
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -13,9 +13,7 @@ import { NetworkAnalyst3DService as CommonNetworkAnalyst3DService } from '@super
13
13
  * new NetworkAnalyst3DService(url).sinksFacilityAnalyst(params,function(result){
14
14
  * //doSomething
15
15
  * })
16
- * @param {string} url - 网络分析服务地址。请求网络分析服务,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
19
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -18,9 +18,7 @@ import Point from 'ol/geom/Point';
18
18
  * new NetworkAnalystService(url).findPath(params,function(result){
19
19
  * //doSomething
20
20
  * })
21
- * @param {string} url - 网络分析服务地址。请求网络分析服务,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
24
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -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 获取结果。
@@ -17,7 +17,7 @@ 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
23
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -12,10 +12,10 @@ import Point from 'ol/geom/Point';
12
12
  * @class QueryService
13
13
  * @category iServer Map QueryResults
14
14
  * @classdesc 地图查询服务类。
15
- * 提供:范围查询,SQL 查询,几何查询,距离查询。
15
+ * 提供:范围查询,SQL 查询,空间查询,距离查询。
16
16
  * @modulecategory Services
17
17
  * @extends {ServiceBase}
18
- * @param {string} url - 服务地址。
18
+ * @param {string} url - 地图服务地址,如 http://{ip}:{port}/iserver/services/map-world/rest/maps/World 。
19
19
  * @param {Object} options - 参数。
20
20
  * @param {string} [options.proxy] - 服务代理地址。
21
21
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -37,7 +37,7 @@ export class QueryService extends ServiceBase {
37
37
 
38
38
  /**
39
39
  * @function QueryService.prototype.queryByBounds
40
- * @description 范围查询地图服务。
40
+ * @description 范围查询。查询指定矩形范围内的要素,以及外接矩形与指定范围相交的几何对象。
41
41
  * @param {QueryByBoundsParameters} params - 范围查询参数类。
42
42
  * @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
43
43
  * @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
@@ -76,8 +76,8 @@ export class QueryService extends ServiceBase {
76
76
 
77
77
  /**
78
78
  * @function QueryService.prototype.queryByGeometry
79
- * @description 地图几何查询服务。
80
- * @param {QueryByGeometryParameters} params - 几何查询参数类。
79
+ * @description 空间查询。查询与指定的几何对象符合某种空间关系和查询条件的要素。
80
+ * @param {QueryByGeometryParameters} params - 空间查询参数类。
81
81
  * @param {RequestCallback} [callback] 回调函数,该参数未传时可通过返回的 promise 获取结果。
82
82
  * @param {DataFormat} [resultFormat=DataFormat.GEOJSON] - 返回结果类型。
83
83
  * @returns {Promise} Promise 对象。
@@ -7,7 +7,7 @@ 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
13
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
@@ -20,7 +20,7 @@ import LineString from 'ol/geom/LineString';
20
20
  * new SpatialAnalystService(url).bufferAnalysis(params,function(result){
21
21
  * //doSomething
22
22
  * })
23
- * @param {string} url - 服务地址。
23
+ * @param {string} url - 空间分析服务地址,如 http://{ip}:{port}/iserver/services/spatialanalyst-changchun/restjsr/spatialanalyst 。
24
24
  * @param {Object} options - 参数。
25
25
  * @param {string} [options.proxy] - 服务代理地址。
26
26
  * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。