springmeyer / arc.js

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

Problem with polylines near north pole #8

Closed lapolonio closed 10 years ago

lapolonio commented 12 years ago

If you click on Kentucky first and then click on China, the greater circle crosses the north pole, but the line is rendered across the top of the map and crosses itself.

Do you know of an algorithm that would render the polyline as more of an arc?

I would be more than happy to address the issue but I do not know where to start looking.

Example data: https://gist.github.com/2895824

springmeyer commented 12 years ago

Hi @apolonioleonardo - I'd recommend taking a look at http://d3js.org/

springmeyer commented 10 years ago

not planning on try to avoid this one, but for the record the problem looks like: screen shot 2014-02-10 at 5 39 21 pm