mapbox / mapbox/geojson.io

Add LineString splitting, merging, and extending

Open
#760 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.3k
Forks
640
PR merge metrics
No merged PRs in 30d

Description

These would require custom tools in `mapbox-gl-draw`.

A user has asked if we can add Linestring splitting and merging in #759

Somewhat related, I don't think it's possible to "extend" an existing linestring. The user can create a new point between two vertices, but this requires manually trying to position the new point where the old end point used to be, then moving the previous endpoint to a new location.

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 examining the custom tools in mapbox-gl-draw referenced by the issue and the surrounding line-editing behavior. Done means users can split, merge, and extend existing LineStrings without the manual endpoint repositioning described here.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.