save_leaflet: Save a map you've already made to an HTML file

Description Usage Arguments Examples

Description

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.

Usage

1
save_leaflet(leafmap, location = NULL)

Arguments

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.

Examples

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")

tarakc02/pdquickmap documentation built on May 31, 2019, 3:55 a.m.