aaronpk / Atlas

🌎 Atlas is a set of APIs for looking up information about locations
Apache License 2.0
25 stars 3 forks source link

wrong centering for maps with lines that should cross -180 longitude #3

Open aaronpk opened 7 years ago

aaronpk commented 7 years ago

Right now the map is always drawn with -180 on the left. When a line spans for example Tokyo to LA, the line is drawn the wrong way instead of crossing the -180 line.

aaronpk commented 7 years ago

e.g. https://atlas.p3k.io/map/img?basemap=gray&width=800&height=240&path[]=[-122.64,45.515],[139.683,35.6833]&bezier=25

map