]> git.openstreetmap.org Git - rails.git/commitdiff
Fix "Edit Area" remote control link
authorJohn Firebaugh <john.firebaugh@gmail.com>
Sun, 25 Nov 2012 16:05:01 +0000 (12:05 -0400)
committerTom Hughes <tom@compton.nu>
Sun, 25 Nov 2012 17:36:48 +0000 (17:36 +0000)
Fixes https://trac.openstreetmap.org/ticket/4699

app/assets/javascripts/browse.js

index f92950c238510c3ee6893a4863c2265103d6d92c..c3d67e57e215be0c7017ddc65fdb0114863f95d1 100644 (file)
@@ -1,9 +1,9 @@
 $(document).ready(function () {
   function remoteEditHandler(bbox, select) {
-    var left = bbox.left - 0.0001;
-    var top = bbox.top + 0.0001;
-    var right = bbox.right + 0.0001;
-    var bottom = bbox.bottom - 0.0001;
+    var left = bbox.getWestLng() - 0.0001;
+    var top = bbox.getNorthLat() + 0.0001;
+    var right = bbox.getEastLng() + 0.0001;
+    var bottom = bbox.getSouthLat() - 0.0001;
     var loaded = false;
 
     $("#linkloader").load(function () { loaded = true; });