X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0dbd18e2bb685c432d775f186f114cf4f3de3ca4..a47d6c212da842a552876737c6fb2373555f3feb:/app/assets/javascripts/index/note.js.erb diff --git a/app/assets/javascripts/index/note.js.erb b/app/assets/javascripts/index/note.js.erb index aa746265c..2a2599a3c 100644 --- a/app/assets/javascripts/index/note.js.erb +++ b/app/assets/javascripts/index/note.js.erb @@ -64,7 +64,7 @@ OSM.Note = function (map) { var data = $('.details').data(), latLng = data.coordinates.split(','); - if (!window.location.hash) { + if (!window.location.hash || window.location.hash.match(/^#?c[0-9]+$/)) { OSM.router.moveListenerOff(); map.once('moveend', OSM.router.moveListenerOn); map.getZoom() > 15 ? map.panTo(latLng) : map.setView(latLng, 16);