Displaying 1 result from an estimated 1 matches for "gadmch".
Did you mean:
gadmche
2018 Feb 23
0
Mapedit::selectMap in shiny map.
...electMap() in the shiny app. An error is returned:
Here is some toy code showing the code in using leaflet locally:
library(mapedit)
library(leaflet)
options(stringsAsFactors = F)
bounds <- c(5.956063, 10.49511, 45.81706, 47.80848 )
lf <- leaflet() %>%
addTiles()%>%
addPolygons(data =gadmCHE,
label = ~NAME_1,
layerId = ~NAME_1)
selected <-selectMap(lf)
##the above works fine and returns a dataframe giving the ids of the
selected polygons.
##however the code below - trying to implement in shiny fails with "Can?t
call runApp() from within runApp(). If your application code co...