Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arc not complete for crossing dateline #23

Open
xqin1 opened this issue Mar 19, 2015 · 2 comments
Open

arc not complete for crossing dateline #23

xqin1 opened this issue Mar 19, 2015 · 2 comments

Comments

@xqin1
Copy link

xqin1 commented Mar 19, 2015

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
Copy link

quantegy commented Apr 26, 2016

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
Copy link

mareg commented Jul 25, 2017

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants