elfalem / Leaflet.curve

A Leaflet plugin for drawing Bézier curves and other complex shapes.
Other
218 stars 52 forks source link

Leaflet Curve does not seem to want to cross the Pacific Ocean #37

Closed Weilin37 closed 3 years ago

Weilin37 commented 3 years ago

I have an example of a curve drawn between Australia and California. The expected curve would have crossed the pacific ocean for the shortest path. Instead, it seems to cross Africa and the Atlantic Ocean.

I'd like to understand better why that is and if there is a solution to this. Thanks for your time.

elfalem commented 3 years ago

@Weilin37 This applies to Leaflet.js in general and is not something that's specific to Leaflet.curve. I don't have experience with this aspect but there are several Github issues discussing the crossing of the International Date Line. Please see:

Weilin37 commented 3 years ago

Thanks and you're right those solutions helped. Thanks