Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1f470e8

Browse files
优化例子
1 parent 44541b4 commit 1f470e8

8 files changed

+22
-16
lines changed

‎examples/leaflet/04_generateSpatialDataService.html‎

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

2829
function generateSpatialDataAnalystProcess() {
2930
generateSpatialDataService = L.supermap.spatialAnalystService(serviceUrl);

‎examples/leaflet/04_interpolationAnalystService_Density.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
maxZoom: 18,
2323
zoom: 1
2424
});
25-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map);
26-
interpolationAnalystProcess();
27-
25+
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map).once("load ",function(){
26+
interpolationAnalystProcess();
27+
});
2828
function interpolationAnalystProcess() {
2929
//创建点密度插值分析参数实例
3030
interpolationAnalystParameters = new SuperMap.InterpolationDensityAnalystParameters({

‎examples/leaflet/04_interpolationAnalystService_IDW_dataset.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
maxZoom: 18,
2323
zoom: 1
2424
});
25-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map);
26-
interpolationAnalystProcess();
25+
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map).once("load ", function () {
26+
interpolationAnalystProcess();
27+
});
2728

2829
function interpolationAnalystProcess() {
2930
//创建点密度插值分析参数实例

‎examples/leaflet/04_interpolationAnalystService_IDW_geometry.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
maxZoom: 18,
2323
zoom: 1
2424
});
25-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map);
26-
interpolationAnalystProcess();
25+
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map).once("load ", function () {
26+
interpolationAnalystProcess();
27+
});
2728

2829
function interpolationAnalystProcess() {
2930
//通过SQL查询的方法获取用于插值分析的geometry

‎examples/leaflet/04_interpolationAnalystService_Kriging.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
maxZoom: 18,
2323
zoom: 1
2424
});
25-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map);
26-
interpolationAnalystProcess();
25+
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map).once("load ", function () {
26+
interpolationAnalystProcess();
27+
});
2728

2829
function interpolationAnalystProcess() {
2930
//创建点密度插值分析参数实例

‎examples/leaflet/04_interpolationAnalystService_KrigingUniversal.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
maxZoom: 18,
2323
zoom: 1
2424
});
25-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map);
26-
interpolationAnalystProcess();
25+
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map).once("load ", function () {
26+
interpolationAnalystProcess();
27+
});
2728

2829
function interpolationAnalystProcess() {
2930
//创建点密度插值分析参数实例

‎examples/leaflet/04_interpolationAnalystService_RBF.html‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
maxZoom: 18,
2323
zoom: 1
2424
});
25-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map);
26-
interpolationAnalystProcess();
25+
L.supermap.tiledMapLayer(baseUrl, {noWrap: true, layersID: "[0,1,2]"}).addTo(map).once("load ", function () {
26+
interpolationAnalystProcess();
27+
});
2728

2829
function interpolationAnalystProcess() {
2930
//创建点密度插值分析参数实例

‎examples/leaflet/04_mathExpressionAnalysisService.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
maxZoom: 18,
2020
zoom: 6
2121
});
22-
L.supermap.tiledMapLayer(baseUrl, {noWrap: true}).addTo(map).on("load", function () {
22+
L.supermap.tiledMapLayer(baseUrl, {noWrap: true}).addTo(map).once("load", function () {
2323
mathExpressionAnalysisProcess();
2424
});
2525

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /