mirror of
https://github.com/dylanbenzi/hurricane_normalization_app.git
synced 2026-07-30 05:08:57 +00:00
add map popups
This commit is contained in:
+9
-8
@@ -790,21 +790,22 @@ output$all_storms_map <- renderLeaflet({
|
|||||||
data = all_storm_landfalls,
|
data = all_storm_landfalls,
|
||||||
lng = ~lon,
|
lng = ~lon,
|
||||||
lat = ~lat,
|
lat = ~lat,
|
||||||
radius = 5,
|
radius = 2,
|
||||||
weight = 0,
|
weight = 0,
|
||||||
color = "red",
|
color = "blue",
|
||||||
fillColor = "red",
|
fillColor = "blue",
|
||||||
fillOpacity = 0.8
|
fillOpacity = 0.5
|
||||||
) %>%
|
) %>%
|
||||||
addCircles(
|
addCircles(
|
||||||
data = all_storm_landfalls,
|
data = all_storm_landfalls,
|
||||||
lng = ~lon,
|
lng = ~lon,
|
||||||
lat = ~lat,
|
lat = ~lat,
|
||||||
radius = ~rmw_meters,
|
radius = ~rmw_meters,
|
||||||
weight = 2,
|
popup = ~paste0(storm_name, " ", storm_year),
|
||||||
color = "red",
|
weight = 1,
|
||||||
fillColor = "red",
|
color = "blue",
|
||||||
fillOpacity = 0.3
|
fillColor = "blue",
|
||||||
|
fillOpacity = 0.05
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user