Repository navigation
fix(examples): draw the icechunk example's labels above the raster - #793
Merged
Merged
Conversation
The NLDAS icechunk example renders deck.gl interleaved with no `beforeId`, so the raster is added on top of the whole basemap style and hides the basemap's place names wherever there is data. Insert the layer before the Positron style's `boundary_country_outline` layer, as the COG and mosaic examples do on Dark Matter. Country borders and the city, state, country, ocean and lake labels now draw on top of the raster. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
The NLDAS icechunk example renders deck.gl interleaved without a
beforeId, so itsZarrLayeris added on top of the whole basemap style and hides the basemap's place names wherever there is data.This inserts the layer before the Positron style's
boundary_country_outlinelayer, the same anchor the COG and mosaic examples use on Dark Matter. Country borders and the city, state, country, ocean and lake labels now draw on top of the raster.Changes
examples/nldas-icechunk/src/App.tsx: passbeforeId: "boundary_country_outline"to theZarrLayer, with the@ts-expect-errorcomment the other examples use (@deck.gl/mapboxinjects the prop).Tests
mainthe raster covers the labels, with this change they draw on top.pnpm --filter deck.gl-nldas-icechunk typecheckandbuildpass;pnpm checkis clean.Notes
waterway_label) with the water layers, below the roads, so river names (shown from z9) stay under the raster. Drawing them on top would also draw every road layer over it.Closes #735
🤖 Written by Claude Code