mapbox / mapbox/mapbox-gl-draw
Delete vertex deletes whole polygon
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: newest
mapbox-gl-draw version: newest
Steps to Trigger Behavior
It's randomly happening:
- Select a polygon
- Select a vertex (point), -> the yellow point goes bigger
- Delete the vertex
Expected Behavior
When I select a vertex and delete it (Del button or Trash icon) the selected vertex should be deleted.
Actual Behavior
Sometimes the whole polygon disappears sometimes only the selected vertex. I've tried many many times.
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 reproducing the behavior described in the issue: select a polygon, select a vertex, and delete it with the Delete key or Trash icon using the reported mapbox-gl-js and mapbox-gl-draw versions. Compare cases where only the vertex disappears with cases where the whole polygon disappears; done means deleting a vertex consistently preserves the polygon.
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
- 25/100