X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bdc536d126d884b0795bf82784fc81d4a5e47dcc..ae48206d2ce79f2bc8ba3507549ac2ddab0b291b:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 5cf9c15ff..7c80b0108 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -2,9 +2,10 @@ //= require index/browse //= require index/export //= require index/key +//= require index/notes $(document).ready(function () { - var permalinks = $("#permalink").html(); + var permalinks = $("#permalink").detach().html(); var marker; var params = OSM.mapParams(); var map = createMap("map"); @@ -65,10 +66,10 @@ $(document).ready(function () { }); function updateLocation() { - var center = map.getCenter(); + var center = map.getCenter().wrap(); var zoom = map.getZoom(); var layers = getMapLayers(); - var extents = map.getBounds(); + var extents = map.getBounds().wrap(); updatelinks(center.lng, center.lat,