springmeyer / arc.js

great circle routes in javascript
http://springmeyer.github.io/arc.js/
BSD 2-Clause "Simplified" License
369 stars 70 forks source link

Add option to not cross dateline #36

Closed brandondtran closed 2 years ago

brandondtran commented 5 years ago

Though great circle lines are defined by being the shortest distance between two points, I think this library could also allow users to draw geodesic lines.

I suggest adding a boolean property in Arc options called shortestPath. Default will be true and will produce normal great circle lines. False will draw a line from start point to end point in a west to east direction.

jgravois commented 2 years ago

closing, but happy to discuss in a PR.