Learn R Programming

toro (version 0.1.0)

renderMap: Render a MapLibre GL map in Shiny

Description

Render a MapLibre GL map in Shiny

Usage

renderMap(expr, env = parent.frame(), quoted = FALSE)

Value

A rendered MapLibre GL map for use in a Shiny server.

Arguments

expr

An expression that generates a map.

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

Examples

Run this code
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