-
Notifications
You must be signed in to change notification settings - Fork 0
/
heatmap_circlemarkers.html
166 lines (96 loc) · 7.51 KB
/
heatmap_circlemarkers.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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<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-3.7.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.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://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.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_dc5f62b83aa727475379a60d421f7718 {
position: relative;
width: 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
.leaflet-container { font-size: 1rem; }
</style>
<script src="https://cdn.jsdelivr.net/gh/python-visualization/folium@main/folium/templates/leaflet_heat.min.js"></script>
</head>
<body>
<div class="folium-map" id="map_dc5f62b83aa727475379a60d421f7718" ></div>
</body>
<script>
var map_dc5f62b83aa727475379a60d421f7718 = L.map(
"map_dc5f62b83aa727475379a60d421f7718",
{
center: [19.4326, -99.1332],
crs: L.CRS.EPSG3857,
zoom: 12,
zoomControl: true,
preferCanvas: false,
}
);
var tile_layer_7b41832d643e5029b47bd6c6b57e6e21 = L.tileLayer(
"https://tile.openstreetmap.org/{z}/{x}/{y}.png",
{"attribution": "\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors", "detectRetina": false, "maxNativeZoom": 19, "maxZoom": 19, "minZoom": 0, "noWrap": false, "opacity": 1, "subdomains": "abc", "tms": false}
);
tile_layer_7b41832d643e5029b47bd6c6b57e6e21.addTo(map_dc5f62b83aa727475379a60d421f7718);
var heat_map_834cf4594e03f8a824126957d10085d2 = L.heatLayer(
[[19.4326, -99.1332, 30], [19.44, -99.14, 28], [19.45, -99.12, 32], [19.42, -99.15, 29]],
{"blur": 15, "maxZoom": 18, "minOpacity": 0.5, "radius": 15}
);
heat_map_834cf4594e03f8a824126957d10085d2.addTo(map_dc5f62b83aa727475379a60d421f7718);
var circle_marker_b9b1b7667daa35756f0c7591ef739d87 = L.circleMarker(
[19.4326, -99.1332],
{"bubblingMouseEvents": true, "color": "red", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "red", "fillOpacity": 0.6, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 10, "stroke": true, "weight": 3}
).addTo(map_dc5f62b83aa727475379a60d421f7718);
var popup_f10c1531508a5abd1a4516cd85063cee = L.popup({"maxWidth": "100%"});
var html_5cf49194b74038ce6ab1c5f5c50a6d0d = $(`<div id="html_5cf49194b74038ce6ab1c5f5c50a6d0d" style="width: 100.0%; height: 100.0%;">Riesgo: Alto</div>`)[0];
popup_f10c1531508a5abd1a4516cd85063cee.setContent(html_5cf49194b74038ce6ab1c5f5c50a6d0d);
circle_marker_b9b1b7667daa35756f0c7591ef739d87.bindPopup(popup_f10c1531508a5abd1a4516cd85063cee)
;
var circle_marker_7fa59747f429d65363f531b8a3c5abf6 = L.circleMarker(
[19.44, -99.14],
{"bubblingMouseEvents": true, "color": "orange", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "orange", "fillOpacity": 0.6, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 10, "stroke": true, "weight": 3}
).addTo(map_dc5f62b83aa727475379a60d421f7718);
var popup_24f8041e7f5840e5481d73b672afe097 = L.popup({"maxWidth": "100%"});
var html_25777a873a12d522ede6658b1f0bc6a1 = $(`<div id="html_25777a873a12d522ede6658b1f0bc6a1" style="width: 100.0%; height: 100.0%;">Riesgo: Medio</div>`)[0];
popup_24f8041e7f5840e5481d73b672afe097.setContent(html_25777a873a12d522ede6658b1f0bc6a1);
circle_marker_7fa59747f429d65363f531b8a3c5abf6.bindPopup(popup_24f8041e7f5840e5481d73b672afe097)
;
var circle_marker_f97f543f62bc3140281f2eceaf8867e9 = L.circleMarker(
[19.45, -99.12],
{"bubblingMouseEvents": true, "color": "green", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "green", "fillOpacity": 0.6, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 10, "stroke": true, "weight": 3}
).addTo(map_dc5f62b83aa727475379a60d421f7718);
var popup_94b3f90a1feea713fc419448f149a1b6 = L.popup({"maxWidth": "100%"});
var html_ca5af08ff64dc3b0a188f1f1e038fa7d = $(`<div id="html_ca5af08ff64dc3b0a188f1f1e038fa7d" style="width: 100.0%; height: 100.0%;">Riesgo: Bajo</div>`)[0];
popup_94b3f90a1feea713fc419448f149a1b6.setContent(html_ca5af08ff64dc3b0a188f1f1e038fa7d);
circle_marker_f97f543f62bc3140281f2eceaf8867e9.bindPopup(popup_94b3f90a1feea713fc419448f149a1b6)
;
var circle_marker_6fc6db70b9d5bc5bd93ed1590b7ae892 = L.circleMarker(
[19.42, -99.15],
{"bubblingMouseEvents": true, "color": "orange", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "orange", "fillOpacity": 0.6, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 10, "stroke": true, "weight": 3}
).addTo(map_dc5f62b83aa727475379a60d421f7718);
var popup_b4aafbef621831e91725f3cafb7f2b85 = L.popup({"maxWidth": "100%"});
var html_2bdb70627790f0d451fc0e9ce5c3ba11 = $(`<div id="html_2bdb70627790f0d451fc0e9ce5c3ba11" style="width: 100.0%; height: 100.0%;">Riesgo: Medio</div>`)[0];
popup_b4aafbef621831e91725f3cafb7f2b85.setContent(html_2bdb70627790f0d451fc0e9ce5c3ba11);
circle_marker_6fc6db70b9d5bc5bd93ed1590b7ae892.bindPopup(popup_b4aafbef621831e91725f3cafb7f2b85)
;
</script>
</html>