Leaflet / Leaflet/Leaflet.Editable
Limit radius of editable circle
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 606
- Forks
- 190
- PR merge metrics
- No merged PRs in 30d
Description
I can't find a way to limit the radius of an editable circle. For example, I want the smallest possible radius to be 1000 meters, and if the user tries to make it smaller the radius just stays at 1000 meters.
I looked at cancelable events in the API documentation, but I can't see any that would fit my use case.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the API documentation for editable circles and the cancelable events mentioned in the issue, then locate the editable-circle entry point that handles radius changes. Verify how a minimum radius of 1000 meters should behave during editing, and confirm that attempts to shrink below it leave the radius at 1000 meters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100