X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/19bac47e5f282ccd532fc29a68faa04928c72353..1927bc6ca845f16220f15df0b0f0ac9ea12ce7f2:/app/assets/javascripts/browse.js?ds=inline diff --git a/app/assets/javascripts/browse.js b/app/assets/javascripts/browse.js index 0a3762727..f92950c23 100644 --- a/app/assets/javascripts/browse.js +++ b/app/assets/javascripts/browse.js @@ -23,7 +23,7 @@ $(document).ready(function () { var map = createMap("small_map", { layerControl: false, - zoomControl: false, + panZoomControl: false, attributionControl: false }); @@ -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(); }