@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
package/mapping/WebMap.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 proj4 from 'proj4';
@@ -29,7 +29,6 @@ import MouseWheelZoom from 'ol/interaction/MouseWheelZoom';
29
29
  import * as olProj from 'ol/proj';
30
30
  import * as olProj4 from 'ol/proj/proj4';
31
31
  import * as olLayer from 'ol/layer';
32
- import WMTSCapabilities from 'ol/format/WMTSCapabilities';
33
32
  import WMSCapabilities from 'ol/format/WMSCapabilities';
34
33
  import TileGrid from 'ol/tilegrid/TileGrid';
35
34
  import * as olTilegrid from 'ol/tilegrid';
@@ -49,6 +48,7 @@ import Text from 'ol/style/Text';
49
48
  import Collection from 'ol/Collection';
50
49
  import { containsCoordinate, getCenter } from 'ol/extent';
51
50
  import difference from 'lodash.difference';
51
+ import { XMLParser } from 'fast-xml-parser';
52
52
 
53
53
  window.proj4 = proj4;
54
54
  window.Proj4js = proj4;
@@ -70,6 +70,19 @@ const dpiConfig = {
70
70
  default: 96, // 常用dpi
71
71
  iServerWMTS: 90.7142857142857 // iserver使用的wmts图层dpi
72
72
  };
73
+ // 以下路径统一转为array格式(fast-xml-parser插件在返回值数量为1时候返回obj,返回数量大于1时返回array)
74
+ const WMTS_ARRAY_NODE_PATHS = [
75
+ 'Capabilities.Contents.Layer',
76
+ 'Capabilities.Contents.Layer.Format',
77
+ 'Capabilities.Contents.Layer.Style',
78
+ 'Capabilities.Contents.Layer.TileMatrixSetLink',
79
+ 'Capabilities.Contents.TileMatrixSet',
80
+ 'Capabilities.Contents.TileMatrixSet.TileMatrix',
81
+ 'Capabilities.OperationsMetadata.Operation',
82
+ 'Capabilities.OperationsMetadata.Operation.DCP.HTTP.Get',
83
+ 'Capabilities.OperationsMetadata.Operation.DCP.HTTP.Get.Constraint',
84
+ 'Capabilities.OperationsMetadata.Operation.DCP.HTTP.Get.Constraint.AllowedValues.Value'
85
+ ];
73
86
  /**
74
87
  * @class WebMap
75
88
  * @category iPortal/Online Resources Map
@@ -84,7 +97,7 @@ const dpiConfig = {
84
97
  * @param {function} [options.errorCallback] - 加载地图失败调用的函数。
85
98
  * @param {string} [options.credentialKey] - 凭证密钥。例如为 "key"、"token",或者用户自定义的密钥。用户申请了密钥,此参数必填。
86
99
  * @param {string} [options.credentialValue] - 凭证密钥对应的值,credentialKey 和 credentialValue 必须一起使用。
87
- * @deprecated {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
100
+ * @deprecated {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
88
101
  * @deprecated {boolean} [options.excludePortalProxyUrl] - server 传递过来的 URL 是否带有代理。
89
102
  * @param {Object} [options.serviceProxy] - SuperMap iPortal 内置代理信息,仅矢量瓦片图层上图才会使用。
90
103
  * @param {string} [options.tiandituKey] - 天地图的 key。
@@ -98,6 +111,7 @@ const dpiConfig = {
98
111
  * @param {function} [options.mapSetting.controls] - 地图的控件。
99
112
  * @param {function} [options.mapSetting.interactions] - 地图控制的参数。
100
113
  * @param {number} [options.restDataSingleRequestCount=1000] - 自定义 restData 分批请求,单次请求数量。
114
+ * @param {number} [options.overflowTiles=0] - RestMap 栅格图层瓦片范围向外扩大的圈数。
101
115
  * @extends {ol.Observable}
102
116
  * @usage
103
117
  */
@@ -129,6 +143,7 @@ export class WebMap extends Observable {
129
143
  this.webMap = options.webMap;
130
144
  this.tileFormat = options.tileFormat && options.tileFormat.toLowerCase();
131
145
  this.restDataSingleRequestCount = options.restDataSingleRequestCount || 1000;
146
+ this.overflowTiles = typeof options.overflowTiles === 'undefined' ? 1 : options.overflowTiles;
132
147
  this.tileRequestParameters = options.tileRequestParameters;
133
148
  this.createMap(options.mapSetting);
134
149
  if (this.webMap) {
@@ -600,7 +615,7 @@ export class WebMap extends Observable {
600
615
  tileGrid: TileSuperMapRest.optionsFromMapJSON(url, result).tileGrid,
601
616
  tileLoadFunction: me.getCustomTileLoadFunction()
602
617
  };
603
- if (url && this.isAddProxy(url)) {
618
+ if (url && me.isAddProxy(url)) {
604
619
  options.tileProxy = me.server + 'apps/viewer/getUrlResource.png?url=';
605
620
  }
606
621
  source = new TileSuperMapRest(options);
@@ -667,9 +682,15 @@ export class WebMap extends Observable {
667
682
  * @param {Object} capabilitiesText - wmts信息
668
683
  */
669
684
  getWMTSScales(identifier, capabilitiesText) {
670
- const format = new WMTSCapabilities();
671
- let capabilities = format.read(capabilitiesText);
672
-
685
+ const parser = new XMLParser({
686
+ attributeNamePrefix: '',
687
+ ignoreAttributes: false,
688
+ removeNSPrefix: true,
689
+ isArray: (name, jpath) => {
690
+ return WMTS_ARRAY_NODE_PATHS.includes(jpath);
691
+ }
692
+ });
693
+ const capabilities = parser.parse(capabilitiesText).Capabilities;
673
694
  let content = capabilities.Contents;
674
695
  let tileMatrixSet = content.TileMatrixSet;
675
696
  let scales = [];
@@ -839,7 +860,10 @@ export class WebMap extends Observable {
839
860
  layerType: 'VECTOR_TILE'
840
861
  });
841
862
  }
842
- layerInfo.visibleScale && this.setVisibleScales(layer, layerInfo.visibleScale);
863
+ // 后续逻辑非需要visibleScales 否则修改很复杂
864
+ layerInfo.visibleScales = layer.getSource().getTileGrid().getResolutions().map((res) => {
865
+ return Util.resolutionToScale(res, 96, layerInfo.coordUnit || 'm');
866
+ });
843
867
  //否则没有ID,对不上号
844
868
  layerInfo.layer = layer;
845
869
  layerInfo.layerID = layerID;
@@ -1138,7 +1162,7 @@ export class WebMap extends Observable {
1138
1162
  }
1139
1163
  break;
1140
1164
  case 'OSM':
1141
- baseLayerInfo.url = 'http://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png';
1165
+ baseLayerInfo.url = 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png';
1142
1166
  baseLayerInfo.epsgCode = 'EPSG:3857';
1143
1167
  baseLayerInfo.minZoom = 1;
1144
1168
  baseLayerInfo.maxZoom = 19;
@@ -1292,6 +1316,10 @@ export class WebMap extends Observable {
1292
1316
  ) {
1293
1317
  options.tileProxy = this.server + 'apps/viewer/getUrlResource.png?url=';
1294
1318
  }
1319
+ if(this.overflowTiles) {
1320
+ options.overflowTiles = this.overflowTiles;
1321
+ layerInfo.restMapExtentExpanded = true;
1322
+ }
1295
1323
  let source = new TileSuperMapRest(options);
1296
1324
  SecurityManager[`register${keyfix}`](layerInfo.url);
1297
1325
  return source;
@@ -1379,7 +1407,11 @@ export class WebMap extends Observable {
1379
1407
  getLayerOtherOptions(layerInfo) {
1380
1408
  const { layerType, extent, minZoom, maxZoom } = layerInfo;
1381
1409
  const extentVal = layerType === 'ZXY_TILE' ? this._getZXYTileMapBounds(layerInfo) : extent;
1382
- const options = { extent: extentVal };
1410
+ const options = {};
1411
+ if (!layerInfo.restMapExtentExpanded) {
1412
+ // 扩大 RestMap 栅格图层的 tileGrid 后,不再向图层传递 extent
1413
+ options.extent = extentVal;
1414
+ }
1383
1415
  if (typeof minZoom === 'number' && minZoom !== 0) {
1384
1416
  options.minZoom = minZoom - 1;
1385
1417
  }
@@ -1625,7 +1657,12 @@ export class WebMap extends Observable {
1625
1657
  }
1626
1658
  return this.getRequestUrl(url, proxy);
1627
1659
  }
1628
-
1660
+ getBoundsFromConrner(lower, upper) {
1661
+ const bottomLeft = lower.split(' '),
1662
+ topRight = upper.split(' ');
1663
+ const bounds = bottomLeft.concat(topRight);
1664
+ return [+bounds[0], +bounds[1], +bounds[2], +bounds[3]];
1665
+ }
1629
1666
  /**
1630
1667
  * @private
1631
1668
  * @function WebMap.prototype.getWmtsInfo
@@ -1645,8 +1682,15 @@ export class WebMap extends Observable {
1645
1682
  return response.text();
1646
1683
  })
1647
1684
  .then(function (capabilitiesText) {
1648
- const format = new WMTSCapabilities();
1649
- let capabilities = format.read(capabilitiesText);
1685
+ const parser = new XMLParser({
1686
+ attributeNamePrefix: '',
1687
+ ignoreAttributes: false,
1688
+ removeNSPrefix: true,
1689
+ isArray: (name, jpath) => {
1690
+ return WMTS_ARRAY_NODE_PATHS.includes(jpath);
1691
+ }
1692
+ });
1693
+ const capabilities = parser.parse(capabilitiesText).Capabilities;
1650
1694
  if (that.isValidResponse(capabilities)) {
1651
1695
  let content = capabilities.Contents;
1652
1696
  let tileMatrixSet = content.TileMatrixSet,
@@ -1661,7 +1705,10 @@ export class WebMap extends Observable {
1661
1705
  idx = n;
1662
1706
  layer = layers[idx];
1663
1707
  layerFormat = layer.Format[0];
1664
- var layerBounds = layer.WGS84BoundingBox;
1708
+ var WGS84BoundingBox = layer.WGS84BoundingBox;
1709
+ var boundingBox = layer.BoundingBox;
1710
+ let bbox = WGS84BoundingBox ? WGS84BoundingBox : boundingBox;
1711
+ var layerBounds = that.getBoundsFromConrner(bbox.LowerCorner, bbox.UpperCorner)
1665
1712
  // tileMatrixSetLink = layer.TileMatrixSetLink;
1666
1713
  break;
1667
1714
  }
@@ -1683,7 +1730,7 @@ export class WebMap extends Observable {
1683
1730
  matrixIds.push(tileMatrixSet[i].TileMatrix[h].Identifier);
1684
1731
  }
1685
1732
  //bug wmts出图需要加上origin,否则会出现出图不正确的情况。偏移或者瓦片出不了
1686
- let origin = tileMatrixSet[i].TileMatrix[0].TopLeftCorner;
1733
+ let origin = tileMatrixSet[i].TileMatrix[0].TopLeftCorner.split(' ').map(Number);
1687
1734
  layerInfo.origin =
1688
1735
  ['EPSG:4326', 'EPSG:4490'].indexOf(wmtsLayerEpsg) > -1 ? [origin[1], origin[0]] : origin;
1689
1736
  break;
@@ -1691,7 +1738,7 @@ export class WebMap extends Observable {
1691
1738
  }
1692
1739
  let name = layerInfo.name,
1693
1740
  extent;
1694
- if (layerBounds) {
1741
+ if(WGS84BoundingBox) {
1695
1742
  if (layerBounds[0] < -180) {
1696
1743
  layerBounds[0] = -180;
1697
1744
  }
@@ -1705,11 +1752,13 @@ export class WebMap extends Observable {
1705
1752
  layerBounds[3] = 90;
1706
1753
  }
1707
1754
  extent = olProj.transformExtent(layerBounds, 'EPSG:4326', that.baseProjection);
1708
- } else {
1755
+ } else if(boundingBox) {
1756
+ extent = layerBounds;
1757
+ } else {
1709
1758
  extent = olProj.get(that.baseProjection).getExtent();
1710
- }
1759
+ }
1711
1760
  layerInfo.tileUrl = that.getTileUrl(
1712
- capabilities.OperationsMetadata.GetTile.DCP.HTTP.Get,
1761
+ capabilities.OperationsMetadata.Operation.find(o => o.name === 'GetTile').DCP.HTTP.Get,
1713
1762
  layer,
1714
1763
  layerFormat,
1715
1764
  isKvp
@@ -2808,7 +2857,7 @@ export class WebMap extends Observable {
2808
2857
  attr._smiportal_imgLinkUrl !== ''
2809
2858
  ) {
2810
2859
  //上传的图片,加上当前地址
2811
- imgUrl = `${Util.getIPortalUrl()}resources/markerIcon/${attr._smiportal_imgLinkUrl}`;
2860
+ imgUrl = `${this.server}/resources/markerIcon/${attr._smiportal_imgLinkUrl}`;
2812
2861
  }
2813
2862
  attributes = {
2814
2863
  dataViz_description: attr._smiportal_description,
@@ -5175,20 +5224,20 @@ export class WebMap extends Observable {
5175
5224
  * @param {string} coordUnit
5176
5225
  * @returns {Array} visibleResolution
5177
5226
  */
5178
- createVisibleResolution(visibleScales, indexbounds, bounds, coordUnit) {
5227
+ createVisibleResolution(visibleScales, indexbounds, bounds) {
5179
5228
  let visibleResolution = [];
5180
5229
  // 1 设置了地图visibleScales的情况
5181
- if (visibleScales && visibleScales.length > 0) {
5182
- visibleResolution = visibleScales.map((scale) => {
5183
- let value = 1 / scale;
5184
- let res = this.getResFromScale(value, coordUnit);
5185
- return res;
5186
- });
5187
- } else {
5230
+ // if (visibleScales && visibleScales.length > 0) {
5231
+ // visibleResolution = visibleScales.map((scale) => {
5232
+ // let value = 1 / scale;
5233
+ // let res = this.getResFromScale(value, coordUnit);
5234
+ // return res;
5235
+ // });
5236
+ // } else {
5188
5237
  // 2 地图的bounds
5189
5238
  let envelope = this.getEnvelope(indexbounds, bounds);
5190
5239
  visibleResolution = this.getStyleResolutions(envelope);
5191
- }
5240
+ // }
5192
5241
  return visibleResolution;
5193
5242
  }
5194
5243
 
@@ -5229,7 +5278,7 @@ export class WebMap extends Observable {
5229
5278
  );
5230
5279
  const envelope = this.getEnvelope(indexbounds, layerInfo.bounds);
5231
5280
  const styleResolutions = this.getStyleResolutions(envelope);
5232
- // const origin = [envelope.left, envelope.top];
5281
+ const origin = [envelope.left, envelope.top];
5233
5282
  let baseUrl = layerInfo.url;
5234
5283
  let paramUrl = baseUrl.split('?')[1];
5235
5284
  if (layerInfo.dataSource.type === 'ARCGIS_VECTORTILE') {
@@ -5273,6 +5322,11 @@ export class WebMap extends Observable {
5273
5322
  style: styles,
5274
5323
  withCredentials,
5275
5324
  projection: layerInfo.projection,
5325
+ tileGrid: new TileGrid({
5326
+ resolutions: styleResolutions,
5327
+ origin,
5328
+ tileSize: 512
5329
+ }),
5276
5330
  format: new MVT({
5277
5331
  featureClass: olRenderFeature
5278
5332
  }),
package/mapping/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 { BaiduMap } from './BaiduMap';
package/namespace.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
 
@@ -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 { DataFlowService } from "../services/DataFlowService";
@@ -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);
package/overlay/FGB.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 VectorSource from 'ol/source/Vector';
package/overlay/Graph.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 { Util as CommonUtil} from '@supermapgis/iclient-common/commontypes/Util';
@@ -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';
@@ -16,7 +16,7 @@ import { transformExpandCollapseHiddenData } from '@supermapgis/iclient-common/o
16
16
  * @param {Object} [options] - 参数。
17
17
  * @param {KnowledgeGraph.Config} [options.config] - KnowledgeGraph 的配置项。
18
18
  * @param {string} [options.proxy] - 服务代理地址。
19
- * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
19
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
20
20
  * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
21
21
  * @param {Object} [options.headers] - 请求头。
22
22
  * @fires GraphMap#loaded
@@ -54,7 +54,7 @@ export class GraphMap extends Observable {
54
54
  * @param {string} graphMapName - 图谱名称。
55
55
  * @param {Object} options - 参数。
56
56
  * @param {string} [options.proxy] - 服务代理地址。
57
- * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
57
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
58
58
  * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
59
59
  * @param {Object} [options.headers] - 请求头。
60
60
  * @param {KnowledgeGraph.Config} [options.config] - knowledgegraph 配置项。
@@ -82,7 +82,7 @@ export class GraphMap extends Observable {
82
82
  * @param {string} serviceUrl - GraphMap 服务地址,例如:http://{iserver}/services/knowledgeGraph-test/restjsr/graph
83
83
  * @param {Object} options - 参数。
84
84
  * @param {string} [options.proxy] - 服务代理地址。
85
- * @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
85
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
86
86
  * @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
87
87
  * @param {Object} [options.headers] - 请求头。
88
88
  */
@@ -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';
@@ -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';
package/overlay/Label.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 { Util as CommonUtil} from '@supermapgis/iclient-common/commontypes/Util';
package/overlay/Mapv.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 {
package/overlay/Range.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 { Util as CommonUtil} from '@supermapgis/iclient-common/commontypes/Util';
@@ -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 { Theme as FeatureTheme } from '@supermapgis/iclient-common/overlay/feature/Theme';
package/overlay/Turf.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 * as turf from '@turf/turf';
package/overlay/Unique.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 { Util as CommonUtil} from '@supermapgis/iclient-common/commontypes/Util';
@@ -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';
@@ -34,7 +34,7 @@ import decryptTileUtil from '@supermapgis/tile-decryptor';
34
34
  * @param {(string|undefined)} options.source - Mapbox Style JSON 对象中的 source 名称。当 `options.style` 设置时有效。当不配置时,默认为 Mapbox Style JSON 的 `sources` 对象中的第一个。
35
35
  * @param {(string|Object)} [options.attributions='Tile Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> with <span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a></span>'] - 版权描述信息。
36
36
  * @param {Object} [options.format] - 瓦片的要素格式化。
37
- * @param {boolean} [options.withCredentials] - 请求是否携带 cookie。
37
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
38
38
  * @param {Object} [options.headers] - 请求头。
39
39
  * @param {boolean|Function} [options.decrypt] - 瓦片解密。如果是 true 表示用内置的解密方法, 如 decrypt: true;如果是function 则是自定义解密如 decrypt: function ({ key, bytes })。
40
40
  * @param {Function} [options.decryptCompletedFunction] - 解密完成后触发。如 decryptCompletedFunction(completeData)。
@@ -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 } from '@supermapgis/iclient-common/commontypes/Util';
@@ -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
 
@@ -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
 
@@ -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 {
@@ -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 } from "@supermapgis/iclient-common/commontypes/Util";
@@ -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 {Graphic as OverlayGraphic} from './Graphic';
package/overlay/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 {DataFlow} from './DataFlow';
@@ -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
  /**
@@ -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 {
@@ -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 {MapvCanvasLayer} from './MapvCanvasLayer';
@@ -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';
@@ -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';
@@ -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
@@ -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 { GeoJSON as GeoJSONFormat } from '@supermapgis/iclient-common/format/GeoJSON';
@@ -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 {GeoFeature} from './GeoFeature';
@@ -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
  /**
@@ -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 { FetchRequest } from '@supermapgis/iclient-common/util/FetchRequest';
@@ -34,7 +34,7 @@
34
34
  * 当不配置时,默认为 Mapbox Style JSON 的 `sources` 对象中的第一个。
35
35
  * @param {ol.Map} [options.map] - Openlayers 地图对象,仅用于面填充样式以及Background图层,若没有面填充样式或Background图层可不填。
36
36
  * @param {ol.StyleFunction} [options.selectedStyle] -选中样式 Function。
37
- * @param {boolean} [options.withCredentials] - 请求是否携带 cookie。
37
+ * @param {boolean} [options.withCredentials] - 请求是否携带凭据。默认情况下,仅同源请求包含凭据。
38
38
  * @param {Object} [options.headers] - 请求头。
39
39
  * @example
40
40
  * var mbStyle = new MapboxStyles({
@@ -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
  /**
@@ -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} from '@supermapgis/iclient-common/commontypes/Util';
@@ -89,7 +89,7 @@ export class VectorTileStyles extends Observable {
89
89
  cartoCss = cartoCss.replace(/\\#/gi, "___");
90
90
  //替换一些关键符号
91
91
  var cachedLayer = {};
92
- layersInfo && Object.keys(layersInfo).sort().forEach(function (attr) {
92
+ layersInfo && Object.keys(layersInfo).sort((a, b) => a.localeCompare(b)).forEach(function (attr) {
93
93
  var newAttr = attr.replace(/[@#\s]/gi, "___");
94
94
  var to = attr;
95
95
  var keys = Object.keys(cachedLayer);
@@ -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 { pointStyle, lineStyle, polygonStyle, DeafultCanvasStyle } from './DeafultCanvasStyle';
@@ -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';
@@ -24,14 +24,6 @@
24
24
  units: ol.proj.Units.TILE_PIXELS
25
25
  });
26
26
  };
27
- //解决 new ol.format.MVT({featureClass: ol.Feature})时,非3857显示异常的问题。ol即将发布的5.0版本已解决。
28
- // eslint-disable-next-line no-unused-vars
29
- ol.format.MVT.prototype.readProjection = function(source) {
30
- return new ol.proj.Projection({
31
- code: '',
32
- units: ol.proj.Units.TILE_PIXELS
33
- });
34
- };
35
27
  //解决面填充时不能整版填充的问题。ol即将发布的5.0版本已解决。
36
28
  // eslint-disable-next-line no-unused-vars
37
29
  ol.render.canvas.Replay.prototype.applyFill = function(state, geometry) {