Closed Socolin closed 1 month ago
When resizing circle on a map with the option: crs: L.CRS.Simple the circle radius is invalid
The problem seems to be from this line: https://github.com/Leaflet/Leaflet.Editable/blob/master/src/Leaflet.Editable.js#L1712 When it compute the new radius size, it ignore the map crs option and use Earth.distance(this, toLatLng(other));
crs
Earth.distance(this, toLatLng(other));
https://github.com/Leaflet/Leaflet/blob/37d2fd15ad6518c254fae3e033177e96c48b5012/src/geo/LatLng.js#L75
I need this
:+1: and sorry for that long delay!
When resizing circle on a map with the option: crs: L.CRS.Simple the circle radius is invalid
The problem seems to be from this line: https://github.com/Leaflet/Leaflet.Editable/blob/master/src/Leaflet.Editable.js#L1712 When it compute the new radius size, it ignore the map
crs
option and useEarth.distance(this, toLatLng(other));
https://github.com/Leaflet/Leaflet/blob/37d2fd15ad6518c254fae3e033177e96c48b5012/src/geo/LatLng.js#L75