leaflet-hash 0,0

Add URL hashes to web pages with Leaflet maps.

2 years after MIT

Leaflet-hash

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

Leaflet-hash

Demo

You can view a demo of leaflet-hash at mlevans.github.io/leaflet-hash/map.html.

Getting started

  1. Prepare a basic leaflet map. You can find instructions on Leaflet's quick-start guide.

  2. Include leaflet-hash.js.

  3. Once you have initialized the map (an instance of L.Map), add the following code:

        // Assuming your map instance is in a variable called map
        var hash = new L.Hash(map);

Author

@mlevans

Contributors

@calvinmetcalf

@jfirebaugh

@rsudekum

@tmcw

@yohanboniface

License

MIT License. See LICENSE for details.

Related Repositories

leaflet-plugins

leaflet-plugins

Plugins for Leaflet library ...

leaflet-realtime

leaflet-realtime

Put realtime data on a Leaflet map ...

Leaflet.contextmenu

Leaflet.contextmenu

A context menu for Leaflet. ...

leaflet-rails

leaflet-rails

This gem provides the leaflet.js map display library for your Rails 4 applicatio ...

qgis2web

qgis2web

A QGIS plugin to export a map to an OpenLayers 3/Leaflet webmap ...


Top Contributors

mlevans tmcw jfirebaugh yohanboniface bsudekum