powered by
Create a MapLibre GL output for use in Shiny
mapOutput(outputId, width = "100%", height = "600px")
A MapLibre GL map for use in a Shiny UI.
output variable to read from.
Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.
'100%'
'400px'
'auto'
'px'
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