mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
viewer: update hash on load
This commit is contained in:
parent
14c9a48563
commit
82acbeacb1
1 changed files with 2 additions and 0 deletions
|
@ -185,6 +185,8 @@ window.createMap = function () {
|
|||
window.location.hash = makeHash();
|
||||
};
|
||||
|
||||
updateHash();
|
||||
|
||||
map.on('moveend', updateHash);
|
||||
map.on('zoomend', updateHash);
|
||||
map.on('layeradd', updateHash);
|
||||
|
|
Loading…
Add table
Reference in a new issue