mapbox / mapbox/mapbox-gl-draw

Tracking changes in draw.update

Open
#1,043 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello,

I'm using draw.update event and I want to know which parts of a feature have been changed when the action is change_coordinates.
The feature collection contains the feature as is after the change, but I don't know which coordinates/vertex have changed. Is there a way to get the changed values?

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 tracing the draw.update event handling for the change_coordinates action; the issue does not name a file or test. Determine how changed coordinates or vertices could be exposed alongside the post-change feature, then verify that consumers can identify the changed values.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.