Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addHistory

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 leaflet

layerId

the control id

options

A named list of options. See historyOptions

Value

the new map object

References

See Also

Other History Functions: clearFuture(), clearHistory(), goBackHistory(), goForwardHistory(), historyOptions()

Examples

library(leaflet)
leaflet()  %>%
  addTiles() %>%
  addHistory()

leaflet.extras2

Extra Functionality for 'leaflet' Package

v1.1.0
GPL-3 | file LICENSE
Authors
Gatscha Sebastian [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.