X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6f793e1b21a534b0331a5874613c4f3c05853a45..bc1b4d53e39eb7571fcda14287d573855cb1682c:/app/assets/javascripts/browse.js diff --git a/app/assets/javascripts/browse.js b/app/assets/javascripts/browse.js index b2efe4fd5..f92950c23 100644 --- a/app/assets/javascripts/browse.js +++ b/app/assets/javascripts/browse.js @@ -71,7 +71,14 @@ $(document).ready(function () { $("#object_edit").show(); var centre = extent.getCenter(); - updatelinks(centre.lng, centre.lat, 16, null, extent.left, extent.bottom, extent.right, extent.top, object); + updatelinks(centre.lng, + centre.lat, + 16, null, + extent.getWestLng(), + extent.getSouthLat(), + extent.getEastLng(), + extent.getNorthLat(), + object); } else { $("#small_map").hide(); }