You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
jpuerto
added a commit
to becompany/Leaflet.AnimatedMarker
that referenced
this issue
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: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.
The text was updated successfully, but these errors were encountered: