mapbox / mapbox/mapbox-gl-draw

There doesn't seem to be a way to cleanly remove the tool once its active.

Open
#951 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

There doesn't seem to be a way to clean up the 22 layers that this tool creates. Polluting the map context. If you do it manually, an error is thrown by queryRenderedFeatures() while the mouse is moving.

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 how the active tool creates and removes its 22 map layers, then inspect the queryRenderedFeatures() call that fails while the mouse is moving after manual cleanup. Done means the tool can be cleanly removed without polluting the map context or throwing during pointer movement; the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.