+ }
+
+ parent.$("body").on("click", "a.set_position", function (e) {
+ e.preventDefault();
+ var data = parent.$(this).data();
+ goToLocation(data);
+ });
+
+ parent.addEventListener("hashchange", function (e) {
+ if (hashChangedAutomatically) {
+ hashChangedAutomatically = false;
+ return;
+ }
+ e.preventDefault();
+ var data = parent.OSM.mapParams();
+ goToLocation(data);