- page.pushstate = page.popstate = function () {
- page.load();
- };
-
- page.load = function () {
- var loadTimer = setTimeout(setLoading, 250);
- $('#sidebar_content').load(window.location.pathname + "?xhr=1", function (a, b, xhr) {
- if (xhr.getResponseHeader('X-Page-Title')) {
- document.title = xhr.getResponseHeader('X-Page-Title');
- }
- bind();
- clearTimeout(loadTimer);
- clearLoading();
+ var data = $('.details').data();
+ if (!noteState) map.addLayer(noteLayer);
+ if (window.location.hash == "") {
+ var coords = data.coordinates.split(',');
+ map.getZoom() > 15 ? map.panTo(coords) : map.setView(coords, 16);
+ }