X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/843051c1b2bba89b21602614de19a40a667c6836..f8cadaf4803821a4e1d30aa1e91b0c2e4c920aea:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 847c230b6..e96ffbf02 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -65,10 +65,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,