Spaces:
Running
Running
silvia.fallone
commited on
Commit
Β·
45639b1
1
Parent(s):
9eb2539
Basic version of hovering name
Browse files- app/pages/0_π_AOIs.py +7 -1
app/pages/0_π_AOIs.py
CHANGED
@@ -55,7 +55,13 @@ if radio_selection == "See Areas":
|
|
55 |
|
56 |
# Add each AOI as a feature group to the map
|
57 |
for aoi in st.session_state["all_aois"].values():
|
58 |
-
feat_group_selected_area.add_child(
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
folium_map.fit_bounds(feat_group_selected_area.get_bounds())
|
61 |
st.session_state["prev_radio_selection"] = "See Areas"
|
|
|
55 |
|
56 |
# Add each AOI as a feature group to the map
|
57 |
for aoi in st.session_state["all_aois"].values():
|
58 |
+
feat_group_selected_area.add_child(
|
59 |
+
folium.GeoJson(
|
60 |
+
aoi["bbox"],
|
61 |
+
tooltip=aoi["name"],
|
62 |
+
style_function=lambda x: {"fillOpacity": 0.2, "weight": 1}
|
63 |
+
)
|
64 |
+
)
|
65 |
|
66 |
folium_map.fit_bounds(feat_group_selected_area.get_bounds())
|
67 |
st.session_state["prev_radio_selection"] = "See Areas"
|