[openstreetmap-website] Add a way to view history that is fully contained in a bounding box (#837)

Jeff Muizelaar notifications at github.com
Tue Nov 18 05:11:42 UTC 2014


Can't this be fixed by changing:

      return changesets.where("min_lon < ? and max_lon > ? and min_lat < ? and max_lat > ?",
                              bbox.max_lon.to_i, bbox.min_lon.to_i,
                              bbox.max_lat.to_i, bbox.min_lat.to_i)
to
      return changesets.where("min_lon > ? and max_lon < ? and min_lat > ? and max_lat < ?",
                              bbox.min_lon.to_i, bbox.max_lon.to_i,
                              bbox.min_lat.to_i, bbox.max_lat.to_i)

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/837#issuecomment-63423676
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20141117/52deb4e5/attachment.html>


More information about the rails-dev mailing list