mapbox / mapbox/mapbox-gl-draw
Disable/Remove Controls
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
Hi,
I think that allowed the possibility to disable or remove controls could be interesting.
For example you want the user to create a polygon or a point but only one and still let him use update function or delete ...
Actually as far as i know you can't block drawing action that mean he can create as many polygon he wants and i can't find a way to update controls.
Contributor guide
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 by locating the controls and drawing, update, and delete APIs described in the issue; no file or test is named. Define the expected behavior for limiting creation to one polygon or point and for disabling or removing controls, then add coverage for those cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100