-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
120 lines (89 loc) · 6.42 KB
/
map.html
File metadata and controls
120 lines (89 loc) · 6.42 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script>
L_NO_TOUCH = false;
L_DISABLE_3D = false;
</script>
<script src="https://cdn.jsdelivr.net/npm/leaflet@1.5.1/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/leaflet@1.5.1/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://rawcdn.githack.com/python-visualization/folium/master/folium/templates/leaflet.awesome.rotate.css"/>
<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>
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
#map_a50a56afb8494019ab50259edb14c0db {
position: relative;
width: 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-minimap/3.6.1/Control.MiniMap.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet-minimap/3.6.1/Control.MiniMap.css"/>
</head>
<body>
<div class="folium-map" id="map_a50a56afb8494019ab50259edb14c0db" ></div>
</body>
<script>
var map_a50a56afb8494019ab50259edb14c0db = L.map(
"map_a50a56afb8494019ab50259edb14c0db",
{
center: [53.07329993446396, 8.076866906036791],
crs: L.CRS.EPSG3857,
zoom: 8,
zoomControl: true,
preferCanvas: false,
}
);
var tile_layer_4380392f14aa4086ad1bced883a6be23 = L.tileLayer(
"https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.jpg",
{"attribution": "Map tiles by \u003ca href=\"http://stamen.com\"\u003eStamen Design\u003c/a\u003e, under \u003ca href=\"http://creativecommons.org/licenses/by/3.0\"\u003eCC BY 3.0\u003c/a\u003e. Data by \u0026copy; \u003ca href=\"http://openstreetmap.org\"\u003eOpenStreetMap\u003c/a\u003e, under \u003ca href=\"http://creativecommons.org/licenses/by-sa/3.0\"\u003eCC BY SA\u003c/a\u003e.", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
).addTo(map_a50a56afb8494019ab50259edb14c0db);
var marker_079913cb6a214b18ae68eab335d3c4bf = L.marker(
[53.07329993446396, 7.076866906036791],
{}
).addTo(map_a50a56afb8494019ab50259edb14c0db);
var icon_4b9a91c3555f46a8aaf6f9df796e9d88 = L.AwesomeMarkers.icon(
{"extraClasses": "fa-rotate-0", "icon": "info-sign", "iconColor": "white", "markerColor": "red", "prefix": "glyphicon"}
);
marker_079913cb6a214b18ae68eab335d3c4bf.setIcon(icon_4b9a91c3555f46a8aaf6f9df796e9d88);
var popup_2a1ca6f93dae4d05a7c1a076af1e4bf1 = L.popup({"maxWidth": 1100});
var i_frame_c2972444787547d78b92d8b6598951f7 = $(`<iframe src="data:text/html;charset=utf-8;base64,CiAgICAKPGhlYWQ+ICAgIAo8c2NyaXB0IHNyYz0iaHR0cHM6Ly9hamF4Lmdvb2dsZWFwaXMuY29tL2FqYXgvbGlicy9qcXVlcnkvMi4xLjMvanF1ZXJ5Lm1pbi5qcyI+PC9zY3JpcHQ+CjxzY3JpcHQgc3JjPSJteS5qcyI+PC9zY3JpcHQ+ICAgIAo8L2hlYWQ+Cg==" width="300" style="border:none !important;" height="400"></iframe>`)[0];
popup_2a1ca6f93dae4d05a7c1a076af1e4bf1.setContent(i_frame_c2972444787547d78b92d8b6598951f7);
marker_079913cb6a214b18ae68eab335d3c4bf.bindPopup(popup_2a1ca6f93dae4d05a7c1a076af1e4bf1)
;
marker_079913cb6a214b18ae68eab335d3c4bf.bindTooltip(
`<div>
Click me!
</div>`,
{"sticky": true}
);
var tile_layer_12ea7e88b35b439a925eac1836d9b661 = L.tileLayer(
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
{"attribution": "Data by \u0026copy; \u003ca href=\"http://openstreetmap.org\"\u003eOpenStreetMap\u003c/a\u003e, under \u003ca href=\"http://www.openstreetmap.org/copyright\"\u003eODbL\u003c/a\u003e.", "detectRetina": false, "maxNativeZoom": 18, "maxZoom": 18, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);
var mini_map_af45e6f3e796422db01e43a39214a981 = new L.Control.MiniMap(
tile_layer_12ea7e88b35b439a925eac1836d9b661,
{"autoToggleDisplay": false, "centerFixed": false, "collapsedHeight": 25, "collapsedWidth": 25, "height": 100, "minimized": false, "position": "topright", "toggleDisplay": true, "width": 400, "zoomAnimation": false, "zoomLevelOffset": -4}
);
map_a50a56afb8494019ab50259edb14c0db.addControl(mini_map_af45e6f3e796422db01e43a39214a981);
var lat_lng_popup_6156bfd111d8473da270492a8e1f4052 = L.popup();
function latLngPop(e) {
lat_lng_popup_6156bfd111d8473da270492a8e1f4052
.setLatLng(e.latlng)
.setContent("Latitude: " + e.latlng.lat.toFixed(4) +
"<br>Longitude: " + e.latlng.lng.toFixed(4))
.openOn(map_a50a56afb8494019ab50259edb14c0db);
}
map_a50a56afb8494019ab50259edb14c0db.on('click', latLngPop);
</script>