mapbox / mapbox/mapbox-gl-draw
activateUIButton() method does not seem to work as intented
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
I'm referring to this method https://github.com/mapbox/mapbox-gl-draw/blob/master/docs/MODES.md#thisactivateuibutton but I can't get it to actually trigger. Anyone that has had a similar issue?
Ideally I want to disable any current active button(s) as they could be interfering with other drawing tools on the map. So something amongst the lines of ```this.draw.activateUIButton()``` would be amazing
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 with the activateUIButton() section linked in docs/MODES.md and reproduce the reported call in a Mapbox GL Draw setup. Trace how the method handles active drawing buttons and compare that behavior with the documented intent. Done means the method's behavior is corrected or its expected usage is clearly documented, with a regression check if an existing test entry point is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100