summaryrefslogtreecommitdiffstats
path: root/viewer
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-04 17:19:56 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-04 17:19:56 +0100
commit82acbeacb1f57f58383be4a2210138d40c6a1d6f (patch)
treecf740d8b4ab2becdd022825956aa1a636aa25c0d /viewer
parent14c9a48563c70db07e5ffcf604fb03bc317e2459 (diff)
downloadMinedMap-82acbeacb1f57f58383be4a2210138d40c6a1d6f.tar
MinedMap-82acbeacb1f57f58383be4a2210138d40c6a1d6f.zip
viewer: update hash on load
Diffstat (limited to 'viewer')
-rw-r--r--viewer/MinedMap.js2
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);