Skip to content

Commit 0f96572

Browse files
committed
fix 离线时例子兼容以文件方式直接打开
1 parent 7f14ad3 commit 0f96572

File tree

292 files changed

+353
-342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+353
-342
lines changed

dist/include-classic.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@
5151
}
5252

5353
load();
54+
window.isLocal = false;
55+
window.server = "http://localhost:8090";
5456
})();

dist/include-leaflet.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@
9292
}
9393

9494
load();
95+
window.isLocal = false;
96+
window.server = "http://localhost:8090";
9597
})();

dist/include-mapboxgl.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@
5555
}
5656
}
5757
load();
58+
window.isLocal = false;
59+
window.server = "http://localhost:8090";
5860
})();

dist/include-openlayers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@
6666
}
6767

6868
load();
69+
window.isLocal = false;
70+
window.server = "http://localhost:8090";
6971
})();

examples/classic/SummaryMeshJobService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h3 class="panel-title">点聚合分析</h3>
8888
</div>
8989
<script type="text/javascript" src="../../dist/include-classic.js"></script>
9090
<script type="text/javascript">
91-
var host = window.isLocal ? document.location.protocol + "//" + document.location.host : "http://117.122.248.69:8090";
91+
var host = window.isLocal ? window.server : "http://117.122.248.69:8090";
9292
var resultLayer,
9393
processingsUrl = host + "/iserver/services/distributedanalyst/rest/v1/jobs",
9494
mapURL = host + "/iserver/services/map-world/rest/maps/World",

examples/classic/SummaryRegionJobService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ <h3 class="panel-title">区域汇总分析</h3>
131131
</div>
132132
<script type="text/javascript" src="../../dist/include-classic.js"></script>
133133
<script type="text/javascript">
134-
var host = window.isLocal ? document.location.protocol + "//" + document.location.host : "http://117.122.248.69:8090";
134+
var host = window.isLocal ? window.server : "http://117.122.248.69:8090";
135135
var resultLayer,
136136
processingsUrl = host + "/iserver/services/distributedanalyst/rest/v1/jobs",
137137
mapURL = host + "/iserver/services/map-world/rest/maps/World",

examples/classic/addressMatchService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
</div>
127127
<script type="text/javascript" src="../../dist/include-classic.js"></script>
128128
<script type="text/javascript">
129-
var host = window.isLocal ? document.location.protocol + "//" + document.location.host : "http://117.122.248.69:8090";
129+
var host = window.isLocal ? window.server : "http://117.122.248.69:8090";
130130
var infowin, layer, markerlayer,
131131
url = host + "/iserver/services/map-china400/rest/maps/China_4326",
132132
addressUrl = host + "/iserver/services/addressmatch-Address/restjsr/v1/address",

examples/classic/kernelDensityJobService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ <h3 class="panel-title">密度分析</h3>
111111
</div>
112112
<script type="text/javascript" src="../../dist/include-classic.js"></script>
113113
<script type="text/javascript">
114-
var host = window.isLocal ? document.location.protocol + "//" + document.location.host : "http://117.122.248.69:8090";
114+
var host = window.isLocal ? window.server : "http://117.122.248.69:8090";
115115
var resultLayer,
116116
processingsUrl = host + "/iserver/services/distributedanalyst/rest/v1/jobs",
117117
mapURL = host + "/iserver/services/map-world/rest/maps/World",

examples/classic/overlayGeoJobService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h3 class='panel-title'>叠加分析</h3>
6666
</div>
6767
<script type="text/javascript" src="../../dist/include-classic.js"></script>
6868
<script type="text/javascript">
69-
var host = window.isLocal ? document.location.protocol + "//" + document.location.host : "http://117.122.248.69:8090";
69+
var host = window.isLocal ? window.server : "http://117.122.248.69:8090";
7070
var resultLayer,
7171
processingsUrl = host + "/iserver/services/distributedanalyst/rest/v1/jobs",
7272
mapURL = host + "/iserver/services/map-world/rest/maps/World",

examples/classic/singleObjectQueryJobService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ <h3 class='panel-title'>单对象查询分析</h3>
7676
</div>
7777
<script type="text/javascript" src="../../dist/include-classic.js"></script>
7878
<script type="text/javascript">
79-
var host = window.isLocal ? document.location.protocol + "//" + document.location.host : "http://117.122.248.69:8090";
79+
var host = window.isLocal ? window.server : "http://117.122.248.69:8090";
8080
var style = {
8181
strokeColor: "#304DBE",
8282
strokeWidth: 2,

0 commit comments

Comments
 (0)