]> git.openstreetmap.org Git - rails.git/commitdiff
Wrap bounds of changeset request, closes #72
authorAaron Lidman <aaronlidman@gmail.com>
Tue, 19 Nov 2013 00:41:25 +0000 (16:41 -0800)
committerAaron Lidman <aaronlidman@gmail.com>
Tue, 19 Nov 2013 00:41:25 +0000 (16:41 -0800)
app/assets/javascripts/index/history.js

index afae6640f87b566d8ab210bacbe18f3d8ce6b58a..367ad5214247013221eeda4e7f3402217c3c6170 100644 (file)
@@ -46,7 +46,7 @@ OSM.History = function(map) {
     $.ajax({
       url: window.location.pathname,
       method: "GET",
     $.ajax({
       url: window.location.pathname,
       method: "GET",
-      data: {bbox: map.getBounds().toBBoxString()},
+      data: {bbox: map.getBounds().wrap().toBBoxString()},
       success: function(html, status, xhr) {
         $('#sidebar_content .changesets').html(html);
         updateMap();
       success: function(html, status, xhr) {
         $('#sidebar_content .changesets').html(html);
         updateMap();