search for: renderleaflet

Displaying 1 result from an estimated 1 matches for "renderleaflet".

2018 Feb 23
0
Mapedit::selectMap in shiny map.
...ns runApp(), please remove it. library(shiny) library(leaflet) library(mapedit) ui <- fluidPage( leafletOutput(?mymap?) ) server <- function(input, output, session) { lf<-leaflet() %>% addTiles()%>% addPolygons(data =gadmCHE, label = ~NAME_1, layerId = ~NAME_1) output$mymap <- renderLeaflet({selectMap(lf) }) } shinyApp(ui, server) ##How do I achieve the same in a shiny map? [[alternative HTML version deleted]]