Skip to content

Commit 534267b

Browse files
committed
增加leaflet、openlayers mapping下可请求数据代理数据,增加代理相关UT;fix 空间分析返回结果在统一父类中处理; fix leaflet 和 openlayers下 themelayer基类的options.id,并增加相关UT;增加changelog内容。review by caoxinke.
1 parent cb647e9 commit 534267b

29 files changed

+805
-679
lines changed

CHANGELOG.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,27 @@
77
- `L.supermap.webmap` 新增支持加载 "MapEditor" , "DataInsights" , "ISERVE" 格式 json 数据
88

99
- 客户端专题图新增支持 `L.CircleMarker` `L.Circle`
10+
1011
- 客户端专题图 `addFeatures` 方法默认只支持添加经纬度坐标要素,新增 `options.alwaysMapCRS` 参数,设置改参数为true , `addFeatures` 方法可添加底图坐标要素
11-
- `L.supermap.wmtsLayer``L.supermap.tiandituTileLayer` 新增 `options.tileProxy` 参数
12+
13+
- `L.supermap.wmtsLayer` , `L.supermap.tiandituTileLayer` , `L.supermap.baiduTileLayer` , `L.supermap.cloudTileLayer` , `L.supermap.imageMapLayer` , `L.supermap.tiledMapLayer` 新增 `options.tileProxy` 参数,支持获取代理服务下相关底图数据
14+
1215
- 废弃 `SuperMap.ElasticSearch``options.change` 参数,直接使用 `SuperMap.ElasticSearch.msearch` `SuperMap.ElasticSearch.msearch``callback` 参数
16+
1317
- `SuperMap.ElasticSearch.update` 方法新增 `callback` 参数
18+
1419
- `L.supermap.ServiceBase` 及其子类新增 `options.proxy`参数
1520

21+
- `L.supermap.spatialAnalystService` 新增 `geometrybatchAnalysis` 接口,支持几何要素批量空间分析
22+
23+
- 几何要素叠加分析新增支持多个要素进行分析
24+
25+
- `SuperMap.SpatialAnalystBase``serviceProcessCompleted` 接口支持处理批量返回结果
26+
27+
- `GeometryOverlayAnalystParameters` 新增 `operateGeometries``sourceGeometries` 参数
28+
29+
- `L.supermap.ThemeLayer` 及其子类新增 `options.id`参数
30+
1631
### for OpenLayers
1732

1833
- `ol.supermap.WebMap` 新增支持加载 "MapEditor" , "DataInsights" , "ISERVE" 格式 json 数据
@@ -21,8 +36,20 @@
2136

2237
- `SuperMap.ElasticSearch.update` 方法新增 `callback` 参数
2338

39+
- `ol.source.Tianditu` , `ol.source.BaiduMap` , `ol.source.SuperMapCloud` , `ol.source.ImageSuperMapRest` , `ol.source.TileSuperMapRest` 新增 `options.tileProxy` 参数,支持获取代理服务下相关底图数据
40+
2441
- `ol.supermap.ServiceBase` 及其子类新增 `options.proxy`参数
2542

43+
- `ol.supermap.SpatialAnalystService` 新增 `geometrybatchAnalysis` 接口,支持几何要素批量空间分析
44+
45+
- 几何要素叠加分析新增支持多个要素进行分析
46+
47+
- `SuperMap.SpatialAnalystBase``serviceProcessCompleted` 接口支持处理批量返回结果
48+
49+
- `GeometryOverlayAnalystParameters` 新增 `operateGeometries``sourceGeometries` 参数
50+
51+
- `ol.source.Theme` 及其子类新增 `options.id`参数
52+
2653
### for MapboxGL
2754

2855
- 废弃 `SuperMap.ElasticSearch``options.change` 参数,直接使用 `SuperMap.ElasticSearch.msearch` `SuperMap.ElasticSearch.msearch``callback` 参数
@@ -31,6 +58,18 @@
3158

3259
- `mapboxgl.supermap.ServiceBase` 及其子类新增 `options.proxy`参数
3360

61+
- `mapboxgl.supermap.SpatialAnalystService` 新增 `geometrybatchAnalysis` 接口,支持几何要素批量空间分析
62+
63+
- 几何要素叠加分析新增支持多个要素进行分析
64+
65+
- `SuperMap.SpatialAnalystBase``serviceProcessCompleted` 接口支持处理批量返回结果
66+
67+
- `GeometryOverlayAnalystParameters` 新增 `operateGeometries``sourceGeometries` 参数
68+
69+
- `mapboxgl.supermap.ThemeLayer` 类新增 `options.id`参数
70+
71+
- `mapboxgl.supermap.ThemeLayer` 类新增 `moveTo`接口,支持调整专题图层显示顺序
72+
3473
### Classic
3574

3675
- 废弃 `SuperMap.ElasticSearch``options.change` 参数,直接使用 `SuperMap.ElasticSearch.msearch` `SuperMap.ElasticSearch.msearch``callback` 参数
@@ -60,10 +99,22 @@
6099

61100
### for Leaflet
62101

102+
- 新增几何要素批量空间分析示例
103+
104+
- 新增批量几何要素叠加分析示例
105+
63106
### for OpenLayers
64107

108+
- 新增几何要素批量空间分析示例
109+
110+
- 新增批量几何要素叠加分析示例
111+
65112
### for MapboxGL
66113

114+
- 新增几何要素批量空间分析示例
115+
116+
- 新增批量几何要素叠加分析示例
117+
67118
### Classic
68119

69120
## Web Site && Docs

dist/iclient-classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12591,7 +12591,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1259112591
}
1259212592

1259312593
function Promise(fn) {
12594-
if (_typeof(this) !== 'object') throw new TypeError('Promises must be constructed via new');
12594+
if (!(this instanceof Promise)) throw new TypeError('Promises must be constructed via new');
1259512595
if (typeof fn !== 'function') throw new TypeError('not a function');
1259612596
this._state = 0;
1259712597
this._handled = false;
@@ -12715,9 +12715,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1271512715
};
1271612716

1271712717
Promise.all = function (arr) {
12718-
var args = Array.prototype.slice.call(arr);
12719-
1272012718
return new Promise(function (resolve, reject) {
12719+
if (!arr || typeof arr.length === 'undefined') throw new TypeError('Promise.all accepts an array');
12720+
var args = Array.prototype.slice.call(arr);
1272112721
if (args.length === 0) return resolve([]);
1272212722
var remaining = args.length;
1272312723

dist/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)