mapbox / mapbox/mapbox-gl-js

A raster layer that use the image source could not be removed

Open
#13,693 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :lady_beetle: needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

mapbox-gl-js version

v3.10.0

Browser and version

Chrome 149.0.7827.103

Expected behavior

The layer correctly removed

Actual behavior

The layer can not be removed

Link to the demonstration

No response

Steps to trigger the unexpected behavior

Step 1: Add the raster layer with a image source
Step 2: Remove the layer before the image loaded (log shows that the layer is not founded)
Step 3: The image layer will be added into the map a few seconds later

Relevant log output

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

Reproduce the issue using the listed steps: add a raster layer with an image source, remove it before the image loads, and observe the later addition. Trace the raster layer and image-loading lifecycle from the relevant map entry points; done means the layer stays removed when removal occurs before loading completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.