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
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