mapshot | R Documentation |
This is a mapshot
adjustment that saves maps as pdf and
warns users if they choose png
mapshot(
x,
url = NULL,
file = NULL,
zoom = 2,
vwidth = 1000,
vheight = 850,
remove_controls = c("zoomControl", "layersControl", "homeButton", "scaleBar",
"drawToolbar", "easyButton"),
...
)
x |
|
url |
Output |
file |
Output |
remove_controls |
|
... |
Further arguments passed on to |
## Not run:
library(leaflet)
library(councildown)
m <- leaflet() %>%
addTiles() %>%
addCouncilStyle(add_dists = TRUE)
mapshot(m, file = "test.png")
file.remove("test.png")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.