Obey the hash

This commit is contained in:
Aaron Lidman 2013-11-14 18:16:23 -08:00
parent fec9dc84c0
commit 518a51712c
2 changed files with 8 additions and 7 deletions

View file

@ -70,7 +70,7 @@ OSM.Note = function (map) {
var data = $('.details').data();
if (!noteState) map.addLayer(noteLayer);
if (window.location.hash == "") {
if (!window.location.hash) {
var coords = data.coordinates.split(',');
OSM.route.moveListenerOff();
map.once('moveend', OSM.route.moveListenerOn);