| write_leaflet | R Documentation |
Write a leaflet map to disk
write_leaflet(
leaflet_map,
file = NULL,
...,
remove_url = TRUE,
verbose = getOption("verbose")
)
leaflet_map |
(object) created with |
file |
(character) ending in |
... |
further arguments to |
remove_url |
(logical) passed to |
verbose |
(logical) |
This function relies on mapview::mapshot().
If file ends with an extensions other than .html —
for example, .png — then mapshot() will try to handle it.
But you may need to pass other arguments, like width and height.
Also, remove_url is TRUE by default (but you can change that).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.