Sizing policy used withing leaflet htmlwidgets.
leafletSizingPolicy(
defaultWidth = "100%",
defaultHeight = 400,
padding = 0,
browser.fill = TRUE,
...
)defaults to "100%" of the available width
defaults to 400px tall
defaults to 0px
defaults to TRUE
Arguments passed on to htmlwidgets::sizingPolicy
viewer.defaultWidthThe default width used to display the widget within the RStudio Viewer.
viewer.defaultHeightThe default height used to display the widget within the RStudio Viewer.
viewer.paddingPadding around the widget when displayed in the RStudio Viewer (defaults to 15 pixels).
viewer.fillWhen displayed in the RStudio Viewer, automatically size
the widget to the viewer dimensions (note that viewer.padding is
still applied). Default to TRUE.
viewer.suppressNever display the widget within the RStudio Viewer
(useful for widgets that require a large amount of space for rendering).
Defaults to FALSE.
viewer.paneHeightRequest that the RStudio Viewer be forced to a specific height when displaying this widget.
browser.defaultWidthThe default width used to display the widget within a standalone web browser.
browser.defaultHeightThe default height used to display the widget within a standalone web browser.
browser.paddingPadding around the widget when displayed in a standalone browser (defaults to 40 pixels).
browser.externalWhen displaying in a browser, always use an external
browser (via browseURL()). Defaults to `FALSE“, which will
result in the use of an internal browser within RStudio v1.1 and higher.
knitr.defaultWidthThe default width used to display the widget within documents generated by knitr (e.g. R Markdown).
knitr.defaultHeightThe default height used to display the widget within documents generated by knitr (e.g. R Markdown).
knitr.figureApply the default knitr fig.width and fig.height to the
widget when it's rendered within R Markdown documents. Defaults to
TRUE.
fillWhether or not the widget's container should be treated as a fill
item, meaning that its height is allowed to grow/shrink to fit a fill
container with an opinionated height (see htmltools::bindFillRole() for
more). Examples of fill containers include bslib::card() and
bslib::card_body_fill().
An htmlwidgets::sizingPolicy object