You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alicestrt 2ca36bf6c7 | 6 years ago | |
---|---|---|
.. | ||
lib | 6 years ago | |
screenshots | 6 years ago | |
test | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE.md | 6 years ago | |
README.md | 6 years ago | |
leaflet-hash.js | 6 years ago | |
package.json | 6 years ago |
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.
Demo
You can view a demo of leaflet-hash at mlevans.github.io/leaflet-hash/map.html.
Getting started
-
Prepare a basic leaflet map. You can find instructions on Leaflet's quick-start guide.
-
Include leaflet-hash.js.
-
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
Contributors
License
MIT License. See LICENSE for details.