Learn R Programming

leaflet.extras (version 2.0.1)

addHash: Add dynamic URL Hash

Description

Leaflet-hash lets you to add dynamic URL hashes to web pages with Leaflet maps. You can easily link users to specific map views.

Usage

addHash(map)

Arguments

map

The leaflet map

Examples

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

Run the code above in your browser using DataLab