Repository navigation
chore(examples): switch from @deck.gl/mapbox to @deck.gl/maplibre - #887
Merged
Merged
Conversation
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
force-pushed
the
examples/deck.gl-maplibre
branch
from
November 24, 2026 16:17
642005c to
724728c
Compare
1 task done
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]>
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) 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 setbeforeIdwere drawn above every MapLibre layer on first load (visgl/deck.gl#10733). visgl/deck.gl#10734 fixes that in 9.4.2.Change
DeckGlOverlayusesMapLibreOverlayinstead ofMapboxOverlay.@deck.gl/mapboxis replaced by@deck.gl/maplibreinexamples/_sharedand the root pnpm overrides.@ts-expect-errorcomments onbeforeIdnow name@deck.gl/maplibre.Test plan
biome ci, andtypecheckandbuildof every example, pass.cog-globein headless Chrome (SwiftShader), first load with no interaction: basemap labels and country borders draw above the raster, asbeforeId: "boundary_country_outline"intends. That's the case that failed in chore: switch examples from @deck.gl/mapbox to @deck.gl/maplibre #661.DeckGlOverlay, in headless Chrome on a real GPU (GTX 950, ANGLE Vulkan), first load with no interaction:beforeIdintends: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.beforeId, so the layer draws on top, as before:sentinel-2,usgs-topo.luma.gl: Binding sampler not set; I didn't check whether@deck.gl/mapboxlogs it too.zarr-sentinel2-tcinot checked: it reads fromhttp://localhost:8080/TCI.zarr, which wasn't running.🤖 Generated with Claude Code
https://claude.ai/code/session_011cLtCQHxJfGKqmXPYrjSPA