Spaces:
Running
Running
silvia.fallone
commited on
Commit
Β·
9eb2539
1
Parent(s):
6ddcac2
Added search button for the map
Browse files- app/pages/0_π_AOIs.py +9 -0
app/pages/0_π_AOIs.py
CHANGED
@@ -74,6 +74,15 @@ elif radio_selection == "Create New Area":
|
|
74 |
},
|
75 |
).add_to(folium_map)
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
new_area_name = st.text_input("Area name")
|
78 |
|
79 |
# Check if the name already exists
|
|
|
74 |
},
|
75 |
).add_to(folium_map)
|
76 |
|
77 |
+
# Add geocoder search bar
|
78 |
+
from folium.plugins import Geocoder
|
79 |
+
Geocoder(
|
80 |
+
position="topleft",
|
81 |
+
collapsed=True,
|
82 |
+
add_marker=False, # ! Adding a marker messes up the area selection tool
|
83 |
+
zoom=10
|
84 |
+
).add_to(folium_map)
|
85 |
+
|
86 |
new_area_name = st.text_input("Area name")
|
87 |
|
88 |
# Check if the name already exists
|