mapbox / mapbox/mapbox-gl-draw

Edit a polygon with a mouse down event only

Open
#831 1 comment 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

Hi,

After creating a polygon I would like to edit the shape of a polygon with one mouse down event and drag the vertex to a new location. No matter how many polygons I have on the map, I would like to be able to edit their shape by with a mouse down event and dragging the vertex to a new location. The current method has three steps, select the polygon, select a vertex, then move it to a new location. Is there a way to streamline this?

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

No file, test, or entry point is named. Reproduce the current three-step polygon-editing flow, then inspect the existing polygon editing interaction; done means a vertex can be dragged after one mouse-down event without separately selecting the polygon and vertex.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.