mapbox / mapbox/mapbox-gl-draw

Feature request: leave draw tool active after object is placed

Open
#709 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature ui
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.