[openstreetmap/openstreetmap-website] Return the centre of the image if the bbox has no extent (#3016)

Andy Allan notifications at github.com
Wed Dec 23 15:05:02 UTC 2020


Fixes #3007. 

If all the provided points in the gpx file have the same lat/lon, then an image where they are all at the centre seems plausible.

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/3016

-- Commit Summary --

  * Return the centre of the image if the bbox has no extent

-- File Changes --

    M lib/osm.rb (5)
    A test/lib/osm_test.rb (15)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/3016.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3016.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3016
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201223/1d0c3819/attachment.htm>


More information about the rails-dev mailing list