-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapUI.html
82 lines (59 loc) · 3.55 KB
/
mapUI.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script>
L_NO_TOUCH = false;
L_DISABLE_3D = false;
</script>
<style>html, body {width: 100%;height: 100%;margin: 0;padding: 0;}</style>
<style>#map {position:absolute;top:0;bottom:0;right:0;left:0;}</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css"/>
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
#map_e6097ab28bf2400389b29732336986e0 {
position: relative;
width: 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
</style>
</head>
<body>
<div class="folium-map" id="map_e6097ab28bf2400389b29732336986e0" ></div>
</body>
<script>
var map_e6097ab28bf2400389b29732336986e0 = L.map(
"map_e6097ab28bf2400389b29732336986e0",
{
center: [39.9075, 116.3975],
crs: L.CRS.EPSG3857,
zoom: 18,
zoomControl: true,
preferCanvas: false,
}
);
var tile_layer_535f1dececd546c59f68cb3adbf99dbc = L.tileLayer(
"http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn\u0026size=1\u0026scale=1\u0026style=7\u0026x={x}\u0026y={y}\u0026z={z}",
{"attribution": "default", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
).addTo(map_e6097ab28bf2400389b29732336986e0);
var marker_b668ba6c2dc64ba0b4f5e8a2f5f2d083 = L.marker(
[39.9075, 116.3975],
{}
).addTo(map_e6097ab28bf2400389b29732336986e0);
var popup_c81c9a252fbf4cc99ee9d280db8fa02f = L.popup({"maxWidth": "100%"});
var html_77b5857eff9241258893bec00a64cf32 = $(`<div id="html_77b5857eff9241258893bec00a64cf32" style="width: 100.0%; height: 100.0%;"><p style="color: green">this is beijing</p></div>`)[0];
popup_c81c9a252fbf4cc99ee9d280db8fa02f.setContent(html_77b5857eff9241258893bec00a64cf32);
marker_b668ba6c2dc64ba0b4f5e8a2f5f2d083.bindPopup(popup_c81c9a252fbf4cc99ee9d280db8fa02f)
;
</script>