powered by
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())
a map widget object created from leaflet
leaflet
the control id
A named list of options. See historyOptions
historyOptions
the new map object
map
https://github.com/cscott530/leaflet-history
Other History Functions: clearFuture(), clearHistory(), goBackHistory(), goForwardHistory(), historyOptions()
clearFuture()
clearHistory()
goBackHistory()
goForwardHistory()
historyOptions()
# NOT RUN { library(leaflet) leaflet() %>% addTiles() %>% addHistory() # }
Run the code above in your browser using DataLab