Add URL hashes to web pages with Leaflet maps
Switch branches/tags
Nothing to show
Pull request Compare This branch is 71 commits behind calvinmetcalf:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
screenshots
.gitignore
LICENSE.md
README.md
leaflet-hash.js

README.md

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.com/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

@rsudekum

@yohanboniface

License

MIT License. See LICENSE for details.