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

arc not complete for crossing dateline #23

Closed xqin1 closed 1 month ago

xqin1 commented 9 years ago

sample gist: https://gist.github.com/xqin1/b38dd6ed9ae96174b96e two points for Seattle and Beijing, China. The arc seems to break at dateline, but the second half is not drawn.

quantegy commented 8 years ago

I'm having the same issue. It's not just a broken plot, but rather takes the long path along the closest latitude.

Logbook Map

Coordinates are [33.6442641, -117.8554282], [12.423, 123.514]

mareg commented 7 years ago

Same issue here - trying to draw a flight path from LAX to SYD and I'm getting this:

screenshot84

  var lax = [-33.946111, 151.177222];
  var syd = [33.9425, -118.408056];

  L.marker(lax).addTo(mymap);
  L.marker(syd).addTo(mymap);

  L.Polyline.Arc(syd, lax, {
    color: 'red',
    weight: 2,
    smoothFactor: 0.5,
    vertices: 20
  }).addTo(mymap);
jgravois commented 1 month ago

nearly a decade has passed and i can't reproduce this on: https://springmeyer.github.io/arc.js/

Screenshot 2024-08-15 at 9 55 58 AM

closing, but happy to discuss further, either here or in a new issue.