Skip to content

fix(examples): draw the icechunk example's labels above the raster - #793

Merged
kylebarron merged 1 commit into
mainfrom
kyle/icechunk-labels-above-raster
Oct 26, 2026
Merged

kylebarron merged 1 commit into
mainfrom
kyle/icechunk-labels-above-raster

Conversation

@kylebarron

Copy link
Copy Markdown
Member

Note

This PR was written by Claude (Claude Code), not by @kylebarron.

The NLDAS icechunk example renders deck.gl interleaved without a beforeId, so its ZarrLayer is 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_outline layer, 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: pass beforeId: "boundary_country_outline" to the ZarrLayer, with the @ts-expect-error comment the other examples use (@deck.gl/mapbox injects the prop).

Tests

  • Example-only change, no new tests. Checked in Chrome at three views (the default view, the western US at z5.3, the US-Mexico border at z6.5): on main the raster covers the labels, with this change they draw on top.
  • pnpm --filter deck.gl-nldas-icechunk typecheck and build pass; pnpm check is clean.

Notes

  • Positron, unlike Dark Matter, puts its river-name layer (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

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]>
@github-actions github-actions Bot added the fix label Oct 24, 2026

@kylebarron kylebarron left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kylebarron
kylebarron merged commit 4b03f23 into main Oct 26, 2026
3 checks passed
@kylebarron
kylebarron deleted the kyle/icechunk-labels-above-raster branch October 26, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In icechunk example, move text labels above raster

1 participant