]> git.openstreetmap.org Git - rails.git/commitdiff
Fix bbox params on browse area links
authorJohn Firebaugh <john.firebaugh@gmail.com>
Sun, 4 Nov 2012 20:05:13 +0000 (13:05 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 9 Nov 2012 20:59:30 +0000 (12:59 -0800)
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();
       }