Repository navigation
feat(examples): add a zarr-globe example - #794
Open
kylebarron wants to merge 1 commit into
Open
kylebarron wants to merge 1 commit into
kylebarron wants to merge 1 commit into
Conversation
The globe-view prototype added a COG globe example, but nothing showed the Zarr path on a globe. Add `examples/zarr-globe`: a copy of `dynamical-zarr-ecmwf` that renders the global ECMWF 2 m temperature forecast on MapLibre's globe projection with deck.gl interleaved. It follows `cog-globe`: `projection="globe"`, `depthCompare: "always"` on the layer so the raster does not z-fight the basemap sphere, a black background around the globe, and the hosted Dark Matter style with `beforeId: "boundary_country_outline"`. That style replaces the flat example's custom water-less style, which the globe does not need. Also list the example on the docs examples page with a card image. The docs workflow and the pnpm workspace already pick up `examples/*`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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 globe-view prototype (#563) added a COG globe example, but nothing showed the Zarr path on a globe. This adds
examples/zarr-globe, a copy ofdynamical-zarr-ecmwfthat animates the global ECMWF IFS ENS 2 m temperature forecast on MapLibre's globe projection with deck.gl interleaved. The shared globe render path already handlesZarrLayer, so no library changes are needed.Changes
examples/zarr-globe(packagedeck.gl-zarr-globe-example), with the same data pipeline and controls asdynamical-zarr-ecmwf. For the globe it followscog-globe:projection="globe",parameters: { depthCompare: "always" }on the layer so the raster does not z-fight the basemap sphere, and a black background around the globe.beforeId: "boundary_country_outline", ascog-globedoes, instead of copying the flat example's custom water-less style.pnpm-lock.yaml: adds the new importer only. The docs workflow and the pnpm workspace already pick upexamples/*.Tests
pnpm --filter deck.gl-zarr-globe-example typecheckandbuildpass,pnpm install --frozen-lockfileaccepts the lockfile, andpnpm checkis clean.Notes
Closes #568
🤖 Written by Claude Code