-
Notifications
You must be signed in to change notification settings - Fork 7
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
Investigate Leaflet.Geodesic to handle antimeridian wrapping issue #75
Comments
It looks like the only way to handle this properly is going to be to make duplicate copies of the polyline shifted by multiples (up to some limit based on when worldCopyJump kicks in) of 360 degrees... Urgh. |
Thoughts on next steps for this...
|
Switching to Leaflet.Geodesic gets us closer (VE3OCL-34, 1 month history): Unfortunately things still break if the polyline wraps the antimeridian more than once (in this case VE3OCL-34, with 6 months history): To handle this, I think the code need to determine how many crossings the path takes over the antimeridian, and add additional polyline copies. e.g. one pass = copies at +/- 360 degrees of longitude, 2 passes = copies at +/- 720 degrees of longitude. So I need to figure out how to track this. Also... the creation of the duplicate polylines really needs to be conditional on the payload path crossing the antimeridian in the first place, else you end up with 'confetti' on the map, like this: Anyway, the current state of this is in https://github.com/darksidelemm/sondehub-amateur-tracker/tree/antimeridian |
This might be an option: https://github.com/henrythasler/Leaflet.Geodesic
The GeodesicCircle part of this might also be useful for range rings.
The text was updated successfully, but these errors were encountered: