Use leafletOutput()
to create a UI element, and renderLeaflet()
to render the map widget.
Usage
leafletOutput(outputId, width = "100%", height = 400)
renderLeaflet(expr, env = parent.frame(), quoted = FALSE)
Arguments
- outputId
output variable to read from
- width, height
the width and height of the map (see
htmlwidgets::shinyWidgetOutput()
)- expr
An expression that generates an HTML widget (or a promise of an HTML widget).
- env
The environment in which to evaluate
expr
.- quoted
Is
expr
a quoted expression (withquote()
)? This is useful if you want to save an expression in a variable.