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

Not working properly for custom CRS #28

Open
jpuerto opened this issue Oct 15, 2014 · 0 comments
Open

Not working properly for custom CRS #28

jpuerto opened this issue Oct 15, 2014 · 0 comments

Comments

@jpuerto
Copy link

jpuerto commented Oct 15, 2014

Hi,
I've open an issue for Leaflet but seems like the problem has to be solved here due to limitations
Leaflet/Leaflet#2946

The problem I have is that I'm using a custom CRS and this plugin is using LatLng.distanceTo() method to calculate the distance between points. This is not working properly in my use case as this value is always calculating the value with the Earth CRS:

distanceTo: function (other) {
return L.CRS.Earth.distance(this, L.latLng(other));
}

The plugin should keep an instance of the configured map and use ´´´map.distance(latlng1, latlng2)´´´ to calculate the distances, this way it will use my custom CRS to calculate the distances.

Salu2.

jpuerto added a commit to becompany/Leaflet.AnimatedMarker that referenced this issue Oct 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant