Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
68160ae
1
Parent(s):
a04f639
add search bar
Browse files
app.py
CHANGED
@@ -178,6 +178,21 @@ m = folium.Map(
|
|
178 |
max_bounds=True,
|
179 |
)
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
#Satellite View from Mapbox
|
182 |
tileurl = 'https://api.mapbox.com/styles/v1/phd2020/clmer2mra01d001pbgjkictpt/tiles/256/{z}/{x}/{y}@2x?access_token=pk.eyJ1IjoicGhkMjAyMCIsImEiOiJja29lZzFwZmUwNHkzMm5wMjZnYjVvcGltIn0.tE0ritrelQOyLdKUH6hgOw'
|
183 |
|
@@ -192,13 +207,6 @@ folium.TileLayer(
|
|
192 |
# Add a LayerControl to the map to toggle between layers (Satellite View and Default One)
|
193 |
folium.LayerControl().add_to(m)
|
194 |
|
195 |
-
# Add Fullscreen button to the map
|
196 |
-
plugins.Fullscreen(
|
197 |
-
position='topright',
|
198 |
-
title='Expand me | تكبير الخريطة',
|
199 |
-
title_cancel='Exit me | تصغير الخريطة',
|
200 |
-
force_separate_button=True
|
201 |
-
).add_to(m)
|
202 |
|
203 |
if show_interventions:
|
204 |
for index, row in interventions_df.iterrows():
|
|
|
178 |
max_bounds=True,
|
179 |
)
|
180 |
|
181 |
+
# Add a search bar to the map
|
182 |
+
plugins.Geocoder(
|
183 |
+
collapsed=False,
|
184 |
+
position="topright",
|
185 |
+
placeholder="Search | البحث",
|
186 |
+
).add_to(m)
|
187 |
+
|
188 |
+
# Add Fullscreen button to the map
|
189 |
+
plugins.Fullscreen(
|
190 |
+
position='topright',
|
191 |
+
title='Expand me | تكبير الخريطة',
|
192 |
+
title_cancel='Exit me | تصغير الخريطة',
|
193 |
+
force_separate_button=True
|
194 |
+
).add_to(m)
|
195 |
+
|
196 |
#Satellite View from Mapbox
|
197 |
tileurl = 'https://api.mapbox.com/styles/v1/phd2020/clmer2mra01d001pbgjkictpt/tiles/256/{z}/{x}/{y}@2x?access_token=pk.eyJ1IjoicGhkMjAyMCIsImEiOiJja29lZzFwZmUwNHkzMm5wMjZnYjVvcGltIn0.tE0ritrelQOyLdKUH6hgOw'
|
198 |
|
|
|
207 |
# Add a LayerControl to the map to toggle between layers (Satellite View and Default One)
|
208 |
folium.LayerControl().add_to(m)
|
209 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
if show_interventions:
|
212 |
for index, row in interventions_df.iterrows():
|