Learn R Programming

leaflet.extras (version 2.0.1)

addResetMapButton: Reset map's view to original view

Description

Reset map's view to original view

Usage

addResetMapButton(map)

Arguments

map

The map widget

Examples

Run this code
leaflet() %>%
  addTiles() %>%
  addResetMapButton()

Run the code above in your browser using DataLab