]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/browse.js
Fix user map icon and offset
[rails.git] / app / assets / javascripts / browse.js
index 0a37627273a82067e41b55bfdf8e03a4f8ec1806..f92950c238510c3ee6893a4863c2265103d6d92c 100644 (file)
@@ -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();
       }