Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Putting back layer control
#19
by
ybendou
- opened
- src/utils.py +2 -2
src/utils.py
CHANGED
@@ -127,7 +127,7 @@ def init_map():
|
|
127 |
attr="Maroc Map",
|
128 |
name="Maroc Map",
|
129 |
overlay=False,
|
130 |
-
control=
|
131 |
).add_to(m)
|
132 |
|
133 |
# Add danger zones
|
@@ -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 |
-
|
139 |
|
140 |
# Macro to add legend
|
141 |
m.get_root().add_child(legend_macro)
|
|
|
127 |
attr="Maroc Map",
|
128 |
name="Maroc Map",
|
129 |
overlay=False,
|
130 |
+
control=False,
|
131 |
).add_to(m)
|
132 |
|
133 |
# Add danger zones
|
|
|
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)
|