Skip to content

chore(examples): switch from @deck.gl/mapbox to @deck.gl/maplibre - #887

Merged
kylebarron merged 1 commit into
mainfrom
examples/deck.gl-maplibre
Nov 24, 2026
Merged

kylebarron merged 1 commit into
mainfrom
examples/deck.gl-maplibre

Conversation

@kylebarron

@kylebarron kylebarron commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Note

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

Needs deck.gl 9.4.2, from #886. Supersedes #661.

Why

deck.gl 9.4 adds @deck.gl/maplibre. #661 switched to it, but stayed a draft: with 9.4.0, interleaved layers that set beforeId were drawn above every MapLibre layer on first load (visgl/deck.gl#10733). visgl/deck.gl#10734 fixes that in 9.4.2.

Change

  • The shared DeckGlOverlay uses MapLibreOverlay instead of MapboxOverlay.
  • @deck.gl/mapbox is replaced by @deck.gl/maplibre in examples/_shared and the root pnpm overrides.
  • The @ts-expect-error comments on beforeId now name @deck.gl/maplibre.

Test plan

  • biome ci, and typecheck and build of every example, pass.
  • cog-globe in headless Chrome (SwiftShader), first load with no interaction: basemap labels and country borders draw above the raster, as beforeId: "boundary_country_outline" intends. That's the case that failed in chore: switch examples from @deck.gl/mapbox to @deck.gl/maplibre #661.
  • Every other example that uses DeckGlOverlay, in headless Chrome on a real GPU (GTX 950, ANGLE Vulkan), first load with no interaction:
    • Labels or borders draw above the deck.gl layers, as their beforeId intends: aef-mosaic, cog-basic, dynamical-zarr-ecmwf, geoarrow-overlay, land-cover, naip-mosaic, nldas-icechunk, onnx-embeddings, pmtiles-terrain, titiler-cog, vermont-cog-comparison, vrt-mosaic, zarr-globe.
    • No beforeId, so the layer draws on top, as before: sentinel-2, usgs-topo.
    • No console errors in any of them. Each logs luma.gl: Binding sampler not set; I didn't check whether @deck.gl/mapbox logs it too.
  • zarr-sentinel2-tci not checked: it reads from http://localhost:8080/TCI.zarr, which wasn't running.

🤖 Generated with Claude Code

https://claude.ai/code/session_011cLtCQHxJfGKqmXPYrjSPA

@github-actions github-actions Bot added the chore label Nov 24, 2026
Base automatically changed from deps/deck.gl-9.4.2 to main November 24, 2026 16:16
deck.gl 9.4.2 fixes `beforeId` on first load in `@deck.gl/maplibre`
(visgl/deck.gl#10734), which blocked this switch in #661.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011cLtCQHxJfGKqmXPYrjSPA

@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 71114b9 into main Nov 24, 2026
7 checks passed
@kylebarron
kylebarron deleted the examples/deck.gl-maplibre branch November 24, 2026 16:23
kylebarron added a commit that referenced this pull request Nov 24, 2026
> [!NOTE]
> This PR was written by Claude (Claude Code) on behalf of @kylebarron,
not by @kylebarron.

### Why

`zarr-sentinel2-tci` reads its data from
`http://localhost:8080/TCI.zarr`. That store is generated locally with
developmentseed/geozarr-examples#36, a scratch branch that is still
open. Without that local build, the example shows only the basemap and
logs `Metadata loading failed in ZarrLayer: Failed to fetch`. This
happened when testing #887.

### Change

- Removes `examples/zarr-sentinel2-tci` and its lockfile entry.
- Nothing else needs to change. The docs workflow builds whatever
folders exist under `examples/`. The only other mentions are in dated
design specs under `dev-docs/specs/`, which I left as they are.

### Test plan

- [x] `pnpm install` and `biome ci` pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_011cLtCTBdsrQ7hy7i297xpJ

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant