-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmy_map3.html
More file actions
128 lines (102 loc) · 5.86 KB
/
my_map3.html
File metadata and controls
128 lines (102 loc) · 5.86 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
121
122
123
124
125
126
127
128
<!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/leaflet@1.6.0/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.6.0/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_8552fb14eb0142f0a34d126dc62e9991 {
position: relative;
width: 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
</style>
<style>
#scroll_zoom_toggler_bcc1f100973e4345a41cb1ffc539ac98 {
position:absolute;
width:35px;
bottom:10px;
height:35px;
left:10px;
background-color:#fff;
text-align:center;
line-height:35px;
vertical-align: middle;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.fullscreen/1.4.2/Control.FullScreen.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.fullscreen/1.4.2/Control.FullScreen.min.css"/>
</head>
<body>
<div class="folium-map" id="map_8552fb14eb0142f0a34d126dc62e9991" ></div>
<img id="scroll_zoom_toggler_bcc1f100973e4345a41cb1ffc539ac98"
alt="scroll"
src="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/png/512/arrow-move.png"
style="z-index: 999999"
onclick="map_8552fb14eb0142f0a34d126dc62e9991.toggleScroll()">
</img>
</body>
<script>
var map_8552fb14eb0142f0a34d126dc62e9991 = L.map(
"map_8552fb14eb0142f0a34d126dc62e9991",
{
center: [48.8566, 2.3522],
crs: L.CRS.EPSG3857,
zoom: 10,
zoomControl: true,
preferCanvas: false,
}
);
L.control.scale().addTo(map_8552fb14eb0142f0a34d126dc62e9991);
var tile_layer_39c78bf6e958492f963660ccf6ed1b0f = 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_8552fb14eb0142f0a34d126dc62e9991);
var feature_group_b74bc4f099c5497cb3da9fcad155fb2e = L.featureGroup(
{}
).addTo(map_8552fb14eb0142f0a34d126dc62e9991);
map_8552fb14eb0142f0a34d126dc62e9991.scrollEnabled = true;
map_8552fb14eb0142f0a34d126dc62e9991.toggleScroll = function() {
if (this.scrollEnabled) {
this.scrollEnabled = false;
this.scrollWheelZoom.disable();
} else {
this.scrollEnabled = true;
this.scrollWheelZoom.enable();
}
};
map_8552fb14eb0142f0a34d126dc62e9991.toggleScroll();
L.control.fullscreen(
{"forceSeparateButton": false, "position": "topright", "title": "Full Screen", "titleCancel": "Exit Full Screen"}
).addTo(map_8552fb14eb0142f0a34d126dc62e9991);
var layer_control_adef9a39c693464fb9c11c0e1353321a = {
base_layers : {
"stamenterrain" : tile_layer_39c78bf6e958492f963660ccf6ed1b0f,
},
overlays : {
"user\u0027s friends locations" : feature_group_b74bc4f099c5497cb3da9fcad155fb2e,
},
};
L.control.layers(
layer_control_adef9a39c693464fb9c11c0e1353321a.base_layers,
layer_control_adef9a39c693464fb9c11c0e1353321a.overlays,
{"autoZIndex": true, "collapsed": true, "position": "topright"}
).addTo(map_8552fb14eb0142f0a34d126dc62e9991);
</script>