mapbox / mapbox/mapbox-gl-draw

How do I disable editing mode after polygon is being drawn?

Open
#1,202 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs information
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

**mapbox-gl-js version**: v2.14.1
**mapbox-gl-draw version**: v1.4.3

### Description

After drawing is created once, I want to disable editing mode in order to prevent changing the drawing path. On the other hands, I want the ability to drag move as is.

### Steps to Trigger Behavior

1.
2.
3.

### Expected Behavior

I try using `simple_select`. I am expecting that the editing mode is off and drag is still working.

### Actual Behavior

Drag is not working

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 reproducing the behavior with mapbox-gl-js v2.14.1 and mapbox-gl-draw v1.4.3, focusing on the simple_select mode after a polygon is drawn. The issue is done when editing is disabled while dragging the drawing still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.