+ function moveToNote() {
+ var data = $('.details').data(),
+ latLng = L.latLng(data.coordinates.split(','));
+
+ if (!window.location.hash || window.location.hash.match(/^#?c[0-9]+$/)) {
+ OSM.router.moveListenerOff();
+ map.once('moveend', OSM.router.moveListenerOn);
+ map.setView(latLng, 15, {reset: true});
+ }
+ }
+