Description Usage Arguments Examples
Add a fullscreen control button
1 | addFullscreenControl(map, position = "topleft", pseudoFullscreen = FALSE)
|
map |
The leaflet map |
position |
position of control: "topleft", "topright", "bottomleft", or "bottomright" |
pseudoFullscreen |
if true, fullscreen to page width and height |
1 2 3 | leaflet() %>%
addTiles() %>%
addFullscreenControl()
|
Loading required package: leaflet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.