X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/843051c1b2bba89b21602614de19a40a667c6836..a51509c668cb09a28ed35c6cb1a76d15f9afcaa5:/app/assets/javascripts/index.js?ds=sidebyside diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 847c230b6..7c80b0108 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -2,6 +2,7 @@ //= require index/browse //= require index/export //= require index/key +//= require index/notes $(document).ready(function () { var permalinks = $("#permalink").detach().html(); @@ -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,