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