add_fullscreen_control | R Documentation |
Add a fullscreen control to a map
add_fullscreen_control(map, position = "top-right")
map |
A map object created by the |
position |
A string specifying the position of the fullscreen control. One of "top-right", "top-left", "bottom-right", or "bottom-left". |
The modified map object with the fullscreen control added.
## Not run:
library(mapgl)
maplibre(
style = maptiler_style("streets"),
center = c(11.255, 43.77),
zoom = 13
) |>
add_fullscreen_control(position = "top-right")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.