diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-04 17:19:56 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-04 17:19:56 +0100 |
commit | 82acbeacb1f57f58383be4a2210138d40c6a1d6f (patch) | |
tree | cf740d8b4ab2becdd022825956aa1a636aa25c0d /viewer | |
parent | 14c9a48563c70db07e5ffcf604fb03bc317e2459 (diff) | |
download | MinedMap-82acbeacb1f57f58383be4a2210138d40c6a1d6f.tar MinedMap-82acbeacb1f57f58383be4a2210138d40c6a1d6f.zip |
viewer: update hash on load
Diffstat (limited to 'viewer')
-rw-r--r-- | viewer/MinedMap.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/viewer/MinedMap.js b/viewer/MinedMap.js index 2df3c64..7960d96 100644 --- a/viewer/MinedMap.js +++ b/viewer/MinedMap.js @@ -185,6 +185,8 @@ window.createMap = function () { window.location.hash = makeHash(); }; + updateHash(); + map.on('moveend', updateHash); map.on('zoomend', updateHash); map.on('layeradd', updateHash); |