arc.js icon indicating copy to clipboard operation
arc.js copied to clipboard

arc not complete for crossing dateline

Open xqin1 opened this issue 10 years ago • 2 comments

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.

xqin1 avatar Mar 19 '15 20:03 xqin1

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]

quantegy avatar Apr 26 '16 17:04 quantegy

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

mareg avatar Jul 25 '17 20:07 mareg