]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/browse.js
Fix L.Icon.Default.imagePath in production
[rails.git] / app / assets / javascripts / browse.js
index 995f0d12d07c7af1d74c85dd672af69e1332da53..f92950c238510c3ee6893a4863c2265103d6d92c 100644 (file)
@@ -21,7 +21,11 @@ $(document).ready(function () {
     return false;
   }
 
-  var map = createMap("small_map");
+  var map = createMap("small_map", {
+    layerControl: false,
+    panZoomControl: false,
+    attributionControl: false
+  });
 
   var params = $("#small_map").data();
   if (params.type == "changeset") {
@@ -67,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();
       }