r-mapedit

How to update the leaflet map in the selectModUI in a Shiny app?

爱⌒轻易说出口 提交于 2020-05-11 06:55:47
问题 I would like to update the selectModUI from the mapedit package for different leaflet maps when using Shiny . Below is a working example. library(tidyverse) library(shiny) library(sf) library(leaflet) library(mapview) library(mapedit) library(DT) library(viridis) # Load the sf object nc <- st_read(system.file("shape/nc.shp", package = "sf")) # Project transformation nc <- st_transform(nc, crs = 4326) # Create a color function for the leaflet map sid74_pal <- colorBin(palette = viridis(10),

How to update the leaflet map in the selectModUI in a Shiny app?

[亡魂溺海] 提交于 2020-05-11 06:55:06
问题 I would like to update the selectModUI from the mapedit package for different leaflet maps when using Shiny . Below is a working example. library(tidyverse) library(shiny) library(sf) library(leaflet) library(mapview) library(mapedit) library(DT) library(viridis) # Load the sf object nc <- st_read(system.file("shape/nc.shp", package = "sf")) # Project transformation nc <- st_transform(nc, crs = 4326) # Create a color function for the leaflet map sid74_pal <- colorBin(palette = viridis(10),