Repository navigation
fix(deck.gl-geotiff): keep MosaicLayer drawing after an item's source fails to open - #833
Merged
Merged
Conversation
… fails to open deck.gl passes `data: null` to renderSubLayers for a tile whose getTileData rejected. MosaicLayer destructured it, so every later update threw, and items loaded after the failure never drew. Closes #798 Co-Authored-By: Claude Opus 5.5 <[email protected]>
kylebarron
commented
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR was written by Claude (Claude Code), not by @kylebarron.
Once one item's
getSourcerejects,MosaicLayerthrows on every later update, and items that load afterward never draw.deck.gl settles a tile whose
getTileDatarejected withnullcontent, andTileLayerstill renders that tile, passingdata: nulltorenderSubLayers. MosaicLayer'srenderSubLayersdestructured it, soTileLayer.renderLayersthrew at that tile on every update. deck.gl then kept the sublayers of the last render that succeeded, which lack every item loaded since.renderSubLayersnow returnsnullfor an item without content, asRasterTileLayeralready does. The failure is still reported once per load: throughonSourceErrorif it's set, and otherwise by deck.gl's defaultonTileError, which logs it.Tests
Two
LayerManagertests with an item whosegetSourcerejects:Cannot destructure property 'item' of 'props.data' as it is null.The deck.gl-geotiff suite and its typecheck pass.
Closes #798
🤖 Written by Claude Code