A raster layer that use the image source could not be removed
Nobody has claimed this yet.
- 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
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
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