addHistory {leaflet.extras2} | R Documentation |
Add History Plugin
Description
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.
Usage
addHistory(map, layerId = NULL, options = historyOptions())
Arguments
map |
a map widget object created from |
layerId |
the control id |
options |
A named list of options. See |
Value
the new map
object
References
https://github.com/cscott530/leaflet-history
See Also
Other History Functions:
clearFuture()
,
clearHistory()
,
goBackHistory()
,
goForwardHistory()
,
historyOptions()
Examples
library(leaflet)
leaflet() %>%
addTiles() %>%
addHistory()
[Package leaflet.extras2 version 1.2.2 Index]