mapbox / mapbox/mapbox-gl-draw

The ability to delete vertices on click

Open
#954 1 comment 2 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**: 1.2.1
**mapbox-gl-draw version**: 1.1.2

Is it possible to delete linestring's vertices on click like it was possible in leaflet.draw?
An attempt to ask stackoverflow community is failed. (https://stackoverflow.com/questions/58012617/is-it-possible-to-delete-vertices-on-click-in-mapbox-gl-draw)

![How it works in leaflet.draw](https://i.stack.imgur.com/ynUqG.gif)

Thanks.

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 reviewing the mapbox-gl-draw vertex-editing behavior and the linked Stack Overflow question, comparing them with the referenced leaflet.draw interaction. Determine the intended click behavior and where it belongs in mapbox-gl-draw; the work is done when line-string vertices can be deleted on click and the behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.