Skip to content

Commit 81b6127

Browse files
committed
修改例子
1 parent ca12a52 commit 81b6127

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/mapboxgl/02_getFeatureBySQL.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
<script>
2626
var attribution = "<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
2727
"with <span>© <a href='http://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
28-
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span>",
29-
baseUrl = 'http://support.supermap.com.cn:8090/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}',
30-
dataUrl = "http://support.supermap.com.cn:8090/iserver/services/data-world/rest/data";
28+
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span>";
29+
var host = window.isLocal ? window.server : "http://support.supermap.com.cn:8090";
30+
var baseUrl = host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}';
31+
var dataUrl = host + "/iserver/services/data-world/rest/data";
3132

3233
var map = new mapboxgl.Map({
3334
container: 'map', //div id

examples/mapboxgl/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ var exampleConfig = {
564564
}, {
565565
name: "纽约城市建筑变化图",
566566
name_en: "New York Construction",
567+
localIgnore: true,
567568
thumbnail: "mb_deckgl_nyBuilding.png",
568569
fileName: "deckglLayer_nyBuilding"
569570
}, {

0 commit comments

Comments
 (0)