mapbox / mapbox/mapbox-gl-draw

Can't Edit after Draw Polygon with Terrain

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

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1.1k
Forks
612
Avg merge
8d 9h
Merged PRs (30d)
5

Description

**mapbox-gl-js version**: 3.4.0
**mapbox-gl-draw version**: 1.4.3

As the title, draw polygon working fine. Can select edit polygon vertex and add midpoint. When active terrain, CAN NOT select edit polygon vertex and add midpoint.

![Screenshot (259)](https://github.com/mapbox/mapbox-gl-draw/assets/61313089/e690f878-8cdf-4c69-9d0f-871035a03e5b)

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 issue with mapbox-gl-js 3.4.0 and mapbox-gl-draw 1.4.3, comparing polygon editing with terrain disabled and enabled. Investigate the terrain-related interaction path; done means polygon vertices can be selected and midpoint handles can be added while terrain is active.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.