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

Wrong distance in measuring tool #116

Closed
KSAMissionCtrl opened this issue Jun 5, 2019 · 2 comments
Closed

Wrong distance in measuring tool #116

KSAMissionCtrl opened this issue Jun 5, 2019 · 2 comments
Labels
Milestone

Comments

@KSAMissionCtrl
Copy link
Owner

The surface map measuring tool distance is off by a factor that depends on how long the line is

@KSAMissionCtrl KSAMissionCtrl added this to the v11.0.0 milestone Jun 5, 2019
@KSAMissionCtrl
Copy link
Owner Author

Two options in this issue: Leaflet/Leaflet#2946

Try replacing distanceTo with the map function first, if that doesn’t work then override the function and use the code from http://kerbalspace.agency/Tracker/distance.htm

@KSAMissionCtrl
Copy link
Owner Author

switched to haversine function to calculate distance.

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

No branches or pull requests

1 participant