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

Fix resizing circle when using L.CRS.Simple #194

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

Socolin
Copy link
Contributor

@Socolin Socolin commented Oct 23, 2019

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));

https://github.com/Leaflet/Leaflet/blob/37d2fd15ad6518c254fae3e033177e96c48b5012/src/geo/LatLng.js#L75

@faizalami
Copy link

I need this

@yohanboniface yohanboniface merged commit 88bc312 into Leaflet:master Sep 5, 2024
@yohanboniface
Copy link
Member

👍 and sorry for that long delay!

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

Successfully merging this pull request may close these issues.

3 participants