Skip to content

Commit f8423b6

Browse files
committed
修改例子
1 parent f67502e commit f8423b6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/mapboxgl/02_getFeatureByIDs.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
<div id="map"></div>
2323
<script type="text/javascript" src="../../dist/include-mapboxgl.js"></script>
2424
<script type="text/javascript">
25+
var host = window.isLocal ? document.location.protocol + "//" + document.location.host : "http://support.supermap.com.cn:8090";
2526
var attribution = "<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox </a>" +
26-
"| Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> " +
27-
" with <span>© <a href='http://iclient.supermapol.com' target='_blank'>SuperMap iClient</a></span>";
28-
var baseUrl = 'http://support.supermap.com.cn:8090/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}',
29-
dataUrl = "http://support.supermap.com.cn:8090/iserver/services/data-world/rest/data";
27+
"| Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> " +
28+
" with <span>© <a href='http://iclient.supermapol.com' target='_blank'>SuperMap iClient</a></span>";
29+
var baseUrl = host + '/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}',
30+
dataUrl = host + "/iserver/services/data-world/rest/data";
3031
var map = new mapboxgl.Map({
3132
container: 'map',
3233
style: {

0 commit comments

Comments
 (0)