X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6f793e1b21a534b0331a5874613c4f3c05853a45..648f23259680f55d233656413679c58eec98c985:/app/assets/javascripts/browse.js?ds=inline 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(); }