addHistory | R Documentation |
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())
map |
a map widget object created from |
layerId |
the control id |
options |
A named list of options. See |
the new map
object
https://github.com/cscott530/leaflet-history
Other History Functions:
clearFuture()
,
clearHistory()
,
goBackHistory()
,
goForwardHistory()
,
historyOptions()
library(leaflet)
leaflet() %>%
addTiles() %>%
addHistory()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.