Skip to content

Commit fd290c2

Browse files
committed
修改例子重复绘制
1 parent b2bf987 commit fd290c2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

examples/leaflet/04_generateSpatialDataService.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
maxZoom: 18,
2323
zoom: 2
2424
});
25-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true}).addTo(map).on("load", function () {
26-
generateSpatialDataAnalystProcess();
27-
});
25+
generateSpatialDataAnalystProcess();
2826

2927
function generateSpatialDataAnalystProcess() {
3028
generateSpatialDataService = L.supermap.spatialAnalystService(serviceUrl);

examples/leaflet/04_thiessenAnalystService_datasets.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@
2121
maxZoom: 18,
2222
zoom: 1
2323
});
24-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true})
25-
.addTo(map)
26-
.on("load", function () {
27-
thiessenAnalystProcess();
28-
});
24+
L.supermap.tiledMapLayer(baseUrl, {noWrap: true}).addTo(map)
25+
thiessenAnalystProcess();
2926

3027
function thiessenAnalystProcess() {
3128
thiessenAnalystService = L.supermap.spatialAnalystService(serviceUrl);

0 commit comments

Comments
 (0)