Learn R Programming

leaflet.extras2 (version 1.3.1)

addEasyprint: Add easyPrint Plugin

Description

Add a control, which allows to print or export a map as .PNG.

Usage

addEasyprint(map, options = easyprintOptions())

Value

A leaflet map object

Arguments

map

a map widget object created from leaflet

options

A named list of options. See easyprintOptions

References

https://github.com/rowanwins/leaflet-easyPrint

See Also

Other EasyPrint Functions: easyprintMap(), easyprintOptions(), removeEasyprint()

Examples

Run this code
library(leaflet)
leaflet() %>%
  addTiles() %>%
  addEasyprint(options = easyprintOptions(
    title = "Print map",
    position = "bottomleft",
    exportOnly = TRUE
  ))

Run the code above in your browser using DataLab