addEasyprint | R Documentation |
Add a control, which allows to print or export a map as .PNG.
addEasyprint(map, options = easyprintOptions())
map |
a map widget object created from |
options |
A named list of options. See |
A leaflet map object
https://github.com/rowanwins/leaflet-easyPrint
Other EasyPrint Functions:
easyprintMap()
,
easyprintOptions()
,
removeEasyprint()
library(leaflet)
leaflet() %>%
addTiles() %>%
addEasyprint(options = easyprintOptions(
title = "Print map",
position = "bottomleft",
exportOnly = TRUE
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.