mapbox / mapbox/mapbox-gl-draw
Feature request: leave draw tool active after object is placed
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 612
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 5
Description
**mapbox-gl-js version**: v0.39.1
**mapbox-gl-draw version**:v1.0.2
### Steps to Trigger Behavior
place object (for example point)
### Expected Behavior
can place one more object right away
### Actual Behavior
need to select draw tool before placing one more object
Need this option to reduces user's click count. In my scenario users are making lots of dots and it's really unproductive to select point tool after placing each point. Some approach to activate draw tool will work as well.
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 tracing the point draw tool's placement flow and how the active draw mode changes after an object is placed. Check the existing interaction tests, if present, for mode-selection behavior. Done means a user can place another point immediately without reselecting the point tool, with the existing behavior preserved for other tools.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100