Leaflet Hash Plus Demo

This demo shows a basic example of how events how the location in the address bar and map can manipulate each other.

Initially the URL will set to demo.html#13.0000/54.5252/-3.0151 set by the map's configuration in the source code.

Click on Hellvellyn and Catstycam, see that the location hash changes to demo.html#13.0000/54.5252/-3.0151/hellvellyn/catstycam and reflects the two dimmed locations.

Change the location hash as follows:
From: demo.html#13.0000/54.5252/-3.0151/hellvellyn/catstycam
To: demo.html#13.0000/54.5252/-3.0151/hellvellyn/lowerman/catstycam
See how Lower Man also dimmed? The location change updated the map markers.

Changing the values for the zoom and latitude/longitude will have the same effect if the values are valid. (If they are not, the meta data will be wiped and the map zoom and centre will reset to the current map values.