The leaflet.extras Package

Interactive Maps with leaflet in R

Rich Majerus

Vice President of Strategy & Planning, Queens University of Charlotte

The leaflet.extras Package

  • We will focus on three extras:

    • addSearchOSM() - make map searchable
    • addReverseSearchOSM() - geocode with a mouse click
    • addResetMapButton() - reset map view
Interactive Maps with leaflet in R

addSearchOSM()

leaflet() %>%
  addTiles() %>%
  addSearchOSM()

addSearchOSM()

Interactive Maps with leaflet in R

Find the Twine

Ball of twine map

Interactive Maps with leaflet in R

addReverseSearchOSM()

leaflet() %>%
  addTiles() %>%
  addSearchOSM() %>% 
  addReverseSearchOSM()

addReverseSearchOSM()

Interactive Maps with leaflet in R

addResetMapButton()

leaflet() %>%
  addTiles() %>%
  addSearchOSM() %>% 
  addReverseSearchOSM() %>% 
  addResetMapButton()

addResetMapButton()

Interactive Maps with leaflet in R

Let's practice!

Interactive Maps with leaflet in R

Preparing Video For Download...