-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
LatLng.distanceTo not working for custom CRS #2946
Comments
Since You can of course overwrite |
Yes, |
Thanks for your replies. I asked here because I saw the problem that @perliedman described, the LatLng object is decoupled from the map so there's no way to know the CRS at this point. As I understand, the problem then is the plugin that should use |
Hi all,
I'm working on a project where we defined a custom CRS, I've added the AnimatedMarker plugin and then I've realized that the distance values are completely wrong in the scale. A closer look to the plugin reveals that it's using the LatLng.distanceTo() method that in current development code is like this:
I think that the LatLng object should use the defined CRS instead of hard code the most common implementation. Does anyone knows a workaround for this? ATM I have configured a fixed value to obtain an acceptable movement rate but I need to be able to define this rate programmatically so the ideal should be to use the configured map CRS implementation.
TIA and salu2.
The text was updated successfully, but these errors were encountered: