Spaces:
Running
Running
silvia.fallone
commited on
Commit
Β·
349d998
1
Parent(s):
45639b1
Added hovering highlight
Browse files- app/pages/0_π_AOIs.py +12 -1
app/pages/0_π_AOIs.py
CHANGED
@@ -59,7 +59,18 @@ if radio_selection == "See Areas":
|
|
59 |
folium.GeoJson(
|
60 |
aoi["bbox"],
|
61 |
tooltip=aoi["name"],
|
62 |
-
style_function=lambda x: {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
)
|
64 |
)
|
65 |
|
|
|
59 |
folium.GeoJson(
|
60 |
aoi["bbox"],
|
61 |
tooltip=aoi["name"],
|
62 |
+
style_function=lambda x: {
|
63 |
+
"fillColor": "#3388ff",
|
64 |
+
"color": "#3388ff",
|
65 |
+
"fillOpacity": 0.2,
|
66 |
+
"weight": 1
|
67 |
+
},
|
68 |
+
highlight_function=lambda x: {
|
69 |
+
"fillColor": "#3388ff",
|
70 |
+
"color": "#3388ff",
|
71 |
+
"fillOpacity": 0.5,
|
72 |
+
"weight": 3
|
73 |
+
}
|
74 |
)
|
75 |
)
|
76 |
|