The plugin enables tracking of map movements in a history similar to a web browser. By default, it is a simple pair of buttons -- back and forward.

addHistory(map, layerId = NULL, options = historyOptions())

Arguments

map

a map widget object created from leaflet

layerId

the control id

options

A named list of options. See historyOptions

Value

the new map object

See also

Examples

library(leaflet)
leaflet()  %>%
  addTiles() %>%
  addHistory()
#> Loading required namespace: fontawesome