mapbox / mapbox/mapbox-gl-draw
Edit a polygon with a mouse down event only
Nobody has claimed this yet.
- 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
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
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