diff options
author | Markus Koch <markus@notsyncing.net> | 2020-04-19 10:45:26 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-04-19 10:45:26 +0200 |
commit | 255e81ce9f0c333827f1a2977a0ece8a83cc3071 (patch) | |
tree | 787a2e0f0a4ea3b1644d783c4a03067f8e35f460 /htdocs/streeteditor.js | |
parent | 1a2f9908fac4917abdb54ef0c52dcf702a140ba2 (diff) | |
download | lifomapserver-255e81ce9f0c333827f1a2977a0ece8a83cc3071.tar.gz lifomapserver-255e81ce9f0c333827f1a2977a0ece8a83cc3071.tar.bz2 lifomapserver-255e81ce9f0c333827f1a2977a0ece8a83cc3071.zip |
Improve location history
Before, script initiated moves would mess with the
history through hash updates partway through the move.
This commit fixes this behavior by checking for a
human source.
Diffstat (limited to 'htdocs/streeteditor.js')
-rw-r--r-- | htdocs/streeteditor.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/htdocs/streeteditor.js b/htdocs/streeteditor.js index 27addb5..a5e9e17 100644 --- a/htdocs/streeteditor.js +++ b/htdocs/streeteditor.js @@ -78,8 +78,6 @@ if (editor_mode) { document.getElementById('mapid').classList.add("no-aa"); mymap.setMaxZoom(14); mymap.off('click', onMapClick); - mymap.off('zoomend', update_hash_from_position); - mymap.off('dragend', update_hash_from_position); onLoad(); function get_location_string() { |