Description Usage Arguments Examples
Save a leaflet map to a standalone HTML file. This will output a file that you can send to clients or upload. By default, you'll be prompted with a file window asking where you want to save the file.
1 | save_leaflet(leafmap, location = NULL)
|
leafmap |
The leaflet map you'd like to save |
location |
If you know where you'd like to save the file, enter the full path (including the name of the file). If you don't enter a location, you'll get a graphical prompt to click your way to a save location. |
1 2 3 4 5 | map_data <- append_geocode(urel)
leaf <- make_leaflet(map_data)
save_leaflet(leaf) ## will bring up a save file dialog window
## alternatively:
save_leaflet(leaf, "my map.html")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.