Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Maroc Map
#18
by
ybendou
- opened
- src/utils.py +4 -4
src/utils.py
CHANGED
@@ -121,11 +121,11 @@ def init_map():
|
|
121 |
).add_to(m)
|
122 |
|
123 |
# Satellite View from Mapbox
|
124 |
-
tileurl = "https://
|
125 |
folium.TileLayer(
|
126 |
tiles=tileurl,
|
127 |
-
attr="
|
128 |
-
name="
|
129 |
overlay=False,
|
130 |
control=True,
|
131 |
).add_to(m)
|
@@ -135,7 +135,7 @@ def init_map():
|
|
135 |
add_danger_distances_to_map(m)
|
136 |
|
137 |
# Add a LayerControl to the map to toggle between layers (Satellite View and Default One)
|
138 |
-
folium.LayerControl().add_to(m)
|
139 |
|
140 |
# Macro to add legend
|
141 |
m.get_root().add_child(legend_macro)
|
|
|
121 |
).add_to(m)
|
122 |
|
123 |
# Satellite View from Mapbox
|
124 |
+
tileurl = "https://marocmap.ikiker.com/maroc/{z}/{x}/{y}.png"
|
125 |
folium.TileLayer(
|
126 |
tiles=tileurl,
|
127 |
+
attr="Maroc Map",
|
128 |
+
name="Maroc Map",
|
129 |
overlay=False,
|
130 |
control=True,
|
131 |
).add_to(m)
|
|
|
135 |
add_danger_distances_to_map(m)
|
136 |
|
137 |
# Add a LayerControl to the map to toggle between layers (Satellite View and Default One)
|
138 |
+
#folium.LayerControl().add_to(m)
|
139 |
|
140 |
# Macro to add legend
|
141 |
m.get_root().add_child(legend_macro)
|