X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/19bac47e5f282ccd532fc29a68faa04928c72353..66f0a4da049e2f71a950ad4adf5f5593cd152f4d:/app/assets/javascripts/browse.js 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(); }