]> git.openstreetmap.org Git - rails.git/commit
Return the centre of the image if the bbox has no extent
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Dec 2020 15:01:01 +0000 (15:01 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Dec 2020 15:01:01 +0000 (15:01 +0000)
commit2519841efe7b89431b146554cc6fce698b4eb15b
treeb19251528489e89b27a8435cca6526dee0a16a19
parent279787943e9f747e0e910600fc0e3003165c69b9
Return the centre of the image if the bbox has no extent

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.
lib/osm.rb
test/lib/osm_test.rb [new file with mode: 0644]