]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/browse.js
Use the OSM map marker icons on the home page
[rails.git] / app / assets / javascripts / browse.js
index b2efe4fd595ad72a2f2ed5983c7a63b7831fba18..f92950c238510c3ee6893a4863c2265103d6d92c 100644 (file)
@@ -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();
       }