Skip to content

Commit af14686

Browse files
committed
优化例子
1 parent 2786775 commit af14686

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

examples/data/styles/beijingDark.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
}
108108
},
109109
{
110-
"id": "二级道路L@北京",
110+
"id": "二级道路L@北京1",
111111
"type": "line",
112112
"source": "vector-tiles",
113113
"source-layer": "二级道路L@北京",

examples/leaflet/PlanesMonitor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
minZoom: 3,
340340
zoom: 7
341341
});
342-
var attr = 'Data © <a href="https://www.elastic.co/products/elasticsearch" target="_blank">Elasticsearch</a> Map Data <span>© <a href="http://support.supermap.com.cn/product/iServer.aspx" target="_blank">SuperMap iServer</a></span> f="http://iclient.supermap.io" target="_blank">SuperMap iClient</a></span>';
342+
var attr = 'Data © <a href="https://www.elastic.co/products/elasticsearch" target="_blank">Elasticsearch</a> Map Data <span>© <a href="http://support.supermap.com.cn/product/iServer.aspx" target="_blank">SuperMap iServer</a></span>';
343343
var host = window.isLocal ? window.server : "http://support.supermap.com.cn:8090";
344344
var url = host + "/iserver/services/map-china400/rest/maps/ChinaDark";
345345
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);

examples/leaflet/mapVLayerPoint.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
center: [40.73231, -73.90086],
1414
zoom: 11,
1515
});
16-
var attr = 'Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a>',
17-
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Light';
16+
var host = window.isLocal ? window.server : "http://support.supermap.com.cn:8090";
17+
var url = host + "/iserver/services/map-china400/rest/maps/ChinaDark";
1818

19-
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
19+
L.supermap.tiledMapLayer(url).addTo(map);
2020
loadData();
2121

2222
function loadData() {

examples/mapboxgl/01_mapQueryByGeometry.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<meta charset="UTF-8">
55
<title data-i18n="resources.title_mapQueryByGeometry"></title>
66
<script type="text/javascript" src="../js/include-web.js"></script>
7-
<script type="text/javascript" src="../../dist/include-openlayers.js"></script>
87
</head>
98
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
109
<div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>

examples/mapboxgl/mapvNyTaxi.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"with <span>© <a href='http://iclient.supermap.io' target='_blank'>SuperMap iClient</a> | </span>" +
3030
"Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a> | </span> " + resources.text_dataSources +
3131
" <a href='http://www.nyc.gov/html/tlc/html/about/trip_record_data.shtml/' target='_blank'>NYCTaxi(" + resources.text_NYTaxiCarPoint + ")</a> © 2017 " + resources.title_3baidu + " MapV";
32-
var tileURL = "https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Light/zxyTileImage.png?z={z}&x={x}&y={y}";
32+
var host = window.isLocal ? window.server : "http://support.supermap.com.cn:8090";
33+
var tileURL = host + "/iserver/services/map-china400/rest/maps/ChinaDark/zxyTileImage.png?z={z}&x={x}&y={y}";
3334
var layer,
3435
map = new mapboxgl.Map({
3536
container: 'map',

examples/mapboxgl/mvtVectorTile_Beijing_dark.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
}
149149
});
150150
map.addLayer({
151-
"id": " 二级道路L@北京",
151+
"id": " 二级道路L@北京1",
152152
"type": "line",
153153
"source": "vector-tiles",
154154
"source-layer": "二级道路L@北京",

examples/openlayers/echartsLinesEffect.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5-
<title data-i18n="resources.title_ChangchunPublicTransportNetwork"></title>
5+
<title>ECharts Lines Effect with Leaflet</title>
66
<script type="text/javascript" include="jquery" src="../js/include-web.js"></script>
77
<script type="text/javascript" include="echarts,ol3-echarts" src="../../dist/openlayers/include-openlayers.js"></script>
88
</head>

examples/openlayers/mapvNycTaxi.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
})
3232
});
3333

34-
var url = "https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Light";
34+
var host = window.isLocal ? window.server : "http://support.supermap.com.cn:8090";
35+
var url = host + "/iserver/services/map-china400/rest/maps/ChinaDark";
3536
map.addLayer(new ol.layer.Tile({
3637
source: new ol.source.TileSuperMapRest({
3738
url: url,

0 commit comments

Comments
 (0)