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

[Refactor] Extends Circle from CircleMarker (patch) #1309

Conversation

Falke-Design
Copy link
Collaborator

@Falke-Design Falke-Design commented Feb 11, 2023

In general the code for Circle and CircleMarker was the same. To reduce the maintainence work, this PR makes that the Circle extends from CircleMarker and overwrites only the necessary options and functions.

Additionally it is now possible to hide the radius edit-handlers with editableCircle: false like for the CircleMarker.
And the option of CircleMarker is renamed from editable to editableCircleMarker, with a fallback for older versions.

  • TODO: find a better name then editable

Supersede #1216

@Falke-Design
Copy link
Collaborator Author

@TurtIeSocks sorry for the very late replay! I thought it would be the best to make Circle extending CircleMarker instead of having the same code twice. If you have time it would be nice, if can take a look into the code.

Together with @codeofsumit I will find another name then editable but else this PR should be ready to merge.

README.md Outdated Show resolved Hide resolved
@Falke-Design Falke-Design added this to the 2.15.0 milestone Nov 5, 2023
@codeofsumit codeofsumit changed the title [Refactor] Extends Circle from CircleMarker [Refactor] Extends Circle from CircleMarker (ignore) Nov 21, 2023
@codeofsumit codeofsumit changed the title [Refactor] Extends Circle from CircleMarker (ignore) [Refactor] Extends Circle from CircleMarker (patch) Nov 21, 2023
# Conflicts:
#	src/js/Draw/L.PM.Draw.Circle.js
#	src/js/Draw/L.PM.Draw.CircleMarker.js
@codeofsumit codeofsumit merged commit a615e6a into geoman-io:develop Nov 21, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants