Skip to content

Commit 7f9a6a2

Browse files
committed
examples 用online深色地图
1 parent 86ab559 commit 7f9a6a2

34 files changed

+147
-181
lines changed

examples/leaflet/12_heatMap_NY.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,16 @@
3434
<script type="text/javascript" src="../../dist/iclient9-leaflet.min.js"></script>
3535
<script type="text/javascript">
3636

37-
var token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
38-
mbUrl = "https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=" + token;
37+
var url = "https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark";
3938

4039
var map = L.map('map', {
4140
maxZoom: 20,
4241
center: [40.68, -73.92],
4342
zoom: 12,
4443
});
4544

46-
var attribution = '数据来源<a target="_blank" href="http://www.nyc.gov/html/tlc/html/about/trip_record_data.shtml">NYC Taxi(纽约出租车上车点)</a>|' +
47-
'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a>';
48-
L.tileLayer(mbUrl, {id: 'mapbox.light', attribution: attribution}).addTo(map);
49-
45+
var attribution = '数据来源<a target="_blank" href="http://www.nyc.gov/html/tlc/html/about/trip_record_data.shtml">NYC Taxi(纽约出租车上车点)</a>';
46+
L.supermap.tiledMapLayer(url,{attribution:attribution}).addTo(map);
5047
loadHeatMap();
5148

5249
function loadHeatMap() {

examples/leaflet/ESHeatMap.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -356,13 +356,9 @@
356356
zoom: 4,
357357
crs: L.CRS.EPSG3857
358358
});
359-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a> with ' +
360-
'<span>© <a href="http://iclient.supermapol.com" target="_blank">SuperMap iClient</a></span> ' +
361-
'with © <a href="https://www.elastic.co/products/elasticsearch" target="_blank">ElasticSearch</a>',
362-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
363-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
364-
365-
L.tileLayer(mbUrl, {id: 'mapbox.dark', attribution: mbAttr, noWrap: true}).addTo(map);
359+
var attr = 'Data © <a href="https://www.elastic.co/products/elasticsearch" target="_blank">ElasticSearch</a> Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a> with <span>© <a href="http://iclient.supermapol.com" target="_blank">SuperMap iClient</a></span>',
360+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark';
361+
L.supermap.tiledMapLayer(url,{attribution:attr}).addTo(map);
366362
}
367363

368364
initTimeControlView();

examples/leaflet/PlanesMonitor.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,9 @@
419419
zoom: 5,
420420
crs: L.CRS.EPSG3857
421421
});
422-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a> with ' +
423-
'<span>© <a href="http://iclient.supermapol.com" target="_blank">SuperMap iClient</a></span> ' +
424-
'with © <a href="https://www.elastic.co/products/elasticsearch" target="_blank">ElasticSearch</a>',
425-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
426-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
427-
428-
L.tileLayer(mbUrl, {id: 'mapbox.dark', attribution: mbAttr}).addTo(map);
422+
var attr = 'Data © <a href="https://www.elastic.co/products/elasticsearch" target="_blank">ElasticSearch</a> Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a> with <span>© <a href="http://iclient.supermapol.com" target="_blank">SuperMap iClient</a></span>',
423+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark';
424+
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
429425
}
430426

431427
initTimeControlView();

examples/leaflet/mapVLayerCSVCar.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
center: [29.56, 106.56],
1818
zoom: 11,
1919
});
20-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a>',
21-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
22-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
20+
var attr = 'Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a>',
21+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark';
2322

24-
L.tileLayer(mbUrl, {id: 'mapbox.dark', attribution: mbAttr}).addTo(map);
23+
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
2524
loadData();
2625

2726
//示例数据来源为百度MapV的加偏数据,iClient9未做纠偏处理

examples/leaflet/mapVLayerForceEdgeBunding.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
zoom: 4,
1919
});
2020

21-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a>',
22-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
23-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
21+
var attr = 'Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a>',
22+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark';
2423

25-
L.tileLayer(mbUrl, {id: 'mapbox.dark', attribution: mbAttr}).addTo(map);
24+
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
2625
loadData();
2726

2827
//示例数据来源为百度MapV的加偏数据,iClient9未做纠偏处理

examples/leaflet/mapVLayerHoneycomb.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@
1313
<script type="text/javascript" src="http://mapv.baidu.com/build/mapv.min.js"></script>
1414
<script type="text/javascript" src="../../dist/iclient9-leaflet.min.js"></script>
1515
<script type="text/javascript">
16-
17-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a>',
18-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
19-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
20-
2116
var map = L.map('map', {
2217
center: [32, 109],
2318
zoom: 4,
2419
});
20+
var attr = 'Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a>',
21+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark';
22+
23+
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
2524

26-
L.tileLayer(mbUrl, {id: 'mapbox.dark', attribution: mbAttr}).addTo(map);
2725
loadData();
2826

2927
function loadData() {

examples/leaflet/mapVLayerPoint.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,14 @@
3232
<script type="text/javascript" src="http://cdn.bootcss.com/dat-gui/0.6.5/dat.gui.min.js"></script>
3333
<script type="text/javascript" src="../../dist/iclient9-leaflet.min.js"></script>
3434
<script type="text/javascript">
35-
36-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a>',
37-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
38-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
39-
40-
4135
var map = L.map('map', {
4236
center: [40.73231, -73.90086],
4337
zoom: 11,
4438
});
39+
var attr = 'Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a>',
40+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Light';
4541

46-
L.tileLayer(mbUrl, {id: 'mapbox.light', attribution: mbAttr}).addTo(map);
42+
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
4743
loadData();
4844
function loadData() {
4945

examples/leaflet/mapVLayerPolygon.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
zoom: 8,
1919
});
2020

21-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a>',
22-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
23-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
21+
var attr = 'Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a>',
22+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark';
2423

25-
L.tileLayer(mbUrl, {id: 'mapbox.light', attribution: mbAttr}).addTo(map);
24+
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
2625
loadData();
2726

2827
//示例数据来源为百度MapV的加偏数据,iClient9未做纠偏处理

examples/leaflet/mapVLayerPolygonBuildings.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
zoom: 12,
1919
});
2020

21-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a>',
22-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
23-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
21+
var attr = 'Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a>',
22+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark';
2423

25-
L.tileLayer(mbUrl, {id: 'mapbox.light', attribution: mbAttr}).addTo(map);
24+
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
2625
loadData();
2726

2827
//示例数据来源为百度MapV的加偏数据,iClient9未做纠偏处理

examples/leaflet/mapVLayerPolylineIntensity.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@
1717
center: [36.64, 108.15],
1818
zoom: 4,
1919
});
20-
var mbAttr = 'Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a>',
21-
token = "pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw",
22-
mbUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + token;
20+
var attr = 'Map Data © <a href="https://www.supermapol.com/" target="_blank"> SuperMap Online</a>',
21+
url = 'https://www.supermapol.com/iserver/services/map_China/rest/maps/China_Dark';
2322

24-
L.tileLayer(mbUrl, {id: 'mapbox.dark', attribution: mbAttr}).addTo(map);
23+
L.supermap.tiledMapLayer(url, {attribution: attr}).addTo(map);
2524
loadData();
2625

2726
//示例数据来源为百度MapV的加偏数据,iClient9未做纠偏处理

0 commit comments

Comments
 (0)