Skip to content

Commit a5e466e

Browse files
committed
增加leaflet imageLayer方法出图 reviewBy zhurc
1 parent 466eb91 commit a5e466e

File tree

10 files changed

+698
-135
lines changed

10 files changed

+698
-135
lines changed

dist/iclient9-leaflet.js

Lines changed: 266 additions & 55 deletions
Large diffs are not rendered by default.

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>SuperMap REST 地图服务底图</title>
6+
</head>
7+
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
8+
<div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>
9+
<script type="text/javascript" src="../../dist/include-leaflet.js"></script>
10+
<script type="text/javascript">
11+
var host = window.isLocal ? window.server : "http://support.supermap.com.cn:8090";
12+
var map, url = host + "/iserver/services/map-china400/rest/maps/China";
13+
map = L.map('map', {
14+
center: [0, 0],
15+
maxZoom: 18,
16+
minZoom: 1,
17+
zoom: 1,
18+
});
19+
L.supermap.imageMapLayer(url, {transparent: false}).addTo(map);
20+
</script>
21+
</body>
22+
</html>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>SuperMap REST 地图服务底图</title>
6+
</head>
7+
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
8+
<div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>
9+
<script type="text/javascript" src="../../dist/include-leaflet.js"></script>
10+
<script type="text/javascript">
11+
var host = window.isLocal ? window.server : "http://support.supermap.com.cn:8090";
12+
var url = host + "/iserver/services/map-world/rest/maps/World",
13+
map = L.map('map', {
14+
crs: L.CRS.EPSG4326,
15+
center: [0, 0],
16+
maxZoom: 18,
17+
minZoom: 1,
18+
zoom: 1,
19+
});
20+
L.supermap.imageMapLayer(url).addTo(map);
21+
</script>
22+
</body>
23+
</html>

examples/leaflet/config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ var exampleConfig = {
2222
name_en: "3857 coordinate system",
2323
thumbnail: "l_tiledMapLayer3857.png",
2424
fileName: "01_tiledMapLayer3857"
25+
}, {
26+
name: "4326底图(image)",
27+
name_en: "4326 coordinate system(image)",
28+
thumbnail: "l_imageMapLayer4326.png",
29+
fileName: "01_imageMapLayer4326"
30+
}, {
31+
name: "3857底图(image)",
32+
name_en: "3857 coordinate system(image)",
33+
thumbnail: "l_imageMapLayer3857.png",
34+
fileName: "01_imageMapLayer3857"
2535
}, {
2636
name: "地图叠加",
2737
name_en: "overlay tile layer",
16 KB
Loading
24.5 KB
Loading

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy