powered by
Render a MapLibre GL map in Shiny
renderMap(expr, env = parent.frame(), quoted = FALSE)
A rendered MapLibre GL map for use in a Shiny server.
An expression that generates a map.
The environment in which to evaluate expr.
expr
Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.
quote()
if(interactive()){ library(shiny) library(toro) ui <- fluidPage( tagList( mapOutput("map") ) ) server <- function(input, output, session) { output$map <- renderMap({ map() }) } }
Run the code above in your browser using DataLab