silvia.fallone commited on
Commit
349d998
Β·
1 Parent(s): 45639b1

Added hovering highlight

Browse files
Files changed (1) hide show
  1. 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: {"fillOpacity": 0.2, "weight": 1}
 
 
 
 
 
 
 
 
 
 
 
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