mirror of
https://github.com/dylanbenzi/hurricane_normalization_app.git
synced 2026-07-30 05:08:57 +00:00
add map center on lat/lon change for calc
This commit is contained in:
@@ -1164,6 +1164,7 @@ observe({
|
|||||||
|
|
||||||
if(new_lat >= -90 & new_lat <= 90 & new_lon >= -180 & new_lon <= 180) {
|
if(new_lat >= -90 & new_lat <= 90 & new_lon >= -180 & new_lon <= 180) {
|
||||||
leafletProxy("impact_analysis_map") %>%
|
leafletProxy("impact_analysis_map") %>%
|
||||||
|
setView(lat = new_lat, lng = new_lon, zoom = 9) %>%
|
||||||
clearShapes() %>%
|
clearShapes() %>%
|
||||||
clearMarkers() %>%
|
clearMarkers() %>%
|
||||||
addCircleMarkers(
|
addCircleMarkers(
|
||||||
@@ -1294,6 +1295,7 @@ div(
|
|||||||
"impact_rmw_multiplier",
|
"impact_rmw_multiplier",
|
||||||
label = "RMW Multiplier",
|
label = "RMW Multiplier",
|
||||||
choices = c("1x", "2x", "3x"),
|
choices = c("1x", "2x", "3x"),
|
||||||
|
selected = "2x",
|
||||||
status = "outline-primary rounded-0",
|
status = "outline-primary rounded-0",
|
||||||
justified = T
|
justified = T
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user