Repository navigation
chore: Bump deck.gl to 9.4.1 and deck.gl-raster to 0.10.0 - #1355
Merged
Merged
Conversation
Also raise the deck.gl overrides in pnpm-workspace.yaml to ^9.4.1; otherwise pnpm keeps most deck.gl packages at 9.4.0. List range-reader, now a deck.gl-raster dependency, among the local-checkout overrides. Co-Authored-By: Claude Opus 5.5 <[email protected]>
kylebarron
commented
Nov 13, 2026
kylebarron
left a comment
Member
Author
There was a problem hiding this comment.
Looks like it was an easy bump with no required changes 🚀
This was referenced Nov 13, 2026
kylebarron
added a commit
that referenced
this pull request
Nov 13, 2026
> [!NOTE] > This PR was written by Claude (Claude Code), not by @kylebarron. Adds `examples/raster-titiler.ipynb`, which renders a Sentinel-2 true-color COG from titiler.xyz's `.npy` tile endpoint with `RasterLayer`'s generic constructor: an async fetch callback that loads each tile with `np.load`, and a render callback that uses TiTiler's mask band as the alpha band. It's an example of the "any Python code" rendering that the COG examples describe, with a tile server as the source instead of a GeoTIFF. The notebook passes morecantile's `WebMercatorQuad` as is, and `extent` keeps tile requests inside the scene. That needs deck.gl-raster 0.9 or later (developmentseed/deck.gl-raster#684), which `main` bundles since #1355. Lonboard 0.17.0 bundles 0.8.1, so the notebook requires `lonboard>0.17.0`. Don't publish the docs with this example until that release is out. Also adds the example's screenshot to `assets/`, an entry in `examples/index.md`, and the docs nav entry. ## Testing I ran the notebook's code against titiler.xyz in the `tests/ui` browser harness, on a build of `main`. All 9 tiles of the scene loaded at zoom 9, no request fell outside `extent`, and the map matched the screenshot in `assets/`. The "Debugging the render callback" cells also work. 🤖 Written by [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
kylebarron
added a commit
that referenced
this pull request
Nov 13, 2026
> [!NOTE] > This PR was written by Claude (Claude Code), not by @kylebarron. Fixes a regression from #1355. A `RasterLayer` with a tile matrix set (`RasterLayer.from_geotiff`, or the generic constructor) asked Python for every visible tile again whenever the map re-rendered. That includes changing any layer property, panning, and several times during the initial load. deck.gl-raster 0.10 names its inner `TileLayer` after the `tilesetDescriptor` object (developmentseed/deck.gl-raster#799), so a new descriptor makes a new `TileLayer` with an empty cache. `RasterModel.render()` built a new `TileMatrixSetAdaptor` every time. Now it's memoized on the tile matrix set and the CRS converters, which only change when Python sets `_tile_matrix_set` or `_crs`. The PMTiles path uses deck.gl's own `TileLayer` and wasn't affected. ## Testing Tile fetches counted from Python, with a UTM (EPSG:32618) COG loaded through `from_geotiff`: | | Initial load | After setting `opacity` | After a 15 px pan | |---|---|---|---| | deck.gl-raster 0.8.1 (before #1355) | 16 | +0 | +0 | | deck.gl-raster 0.10.0 (`main`) | 22 | **+16** | **+32** | With this PR, using a global `WebMercatorQuad` grid, the initial load has no duplicate requests, and a small pan only requests the row of tiles that comes into view (6 new, 0 repeats). - New UI test `test_tile_matrix_set_tiles_not_refetched_on_rerender` fails on `main` (36 requests instead of 24) and passes here. - `uv run pytest`: 368 passed, 1 skipped. - `pnpm build`, `pnpm check` and `pnpm test` pass. `tsc --noEmit` reports the same 9 errors as `main`. 🤖 Written by [Claude Code](https://claude.com/claude-code) --------- 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.
Bumps:
@deck.gl/*9.4.0 → 9.4.1@developmentseed/{deck.gl-raster,affine,morecantile,raster-reproject}0.8.1 → 0.9.0 → 0.10.0The deck.gl overrides in
pnpm-workspace.yamlgo to^9.4.1too. Without that, pnpm keeps every overridden deck.gl package at 9.4.0 and only@deck.gl/reactmoves. deck.gl-raster 0.10 now depends on@developmentseed/range-reader, so I added it to the commented-out local-checkout overrides.The breaking changes in deck.gl-raster 0.9 and 0.10 are in
deck.gl-geotiff,deck.gl-zarrandgeotiff, which Lonboard doesn't use. Lonboard only importsRasterTileLayer,TileMatrixSetAdaptorandMinimalTileData, and needs no code changes.Upstream fixes relevant to Lonboard:
extentis honored (fix(deck.gl-raster): Infer missing TileMatrixSet bounds and honorextentdeck.gl-raster#684). TheTMSBoundingBoxstep inexamples/raster-titiler.ipynb(docs: Add an example rendering TiTiler NumPy tiles #1327) should no longer be needed. That isn't tested here.GlobeControllercan zoom past level 12 (fix(core): let GlobeController zoom past level 12 visgl/deck.gl#10737).The
beforeIdfix for interleaved MapLibre (visgl/deck.gl#10734) merged after 9.4.1, so theidleworkaround tracked in #1293 stays.Supersedes Dependabot's #1350, which stops at deck.gl-raster 0.9.0.
Closes #1350
Testing
pnpm build,pnpm checkandpnpm test(12 tests) pass.uv run pytestpasses: 367 passed, 1 skipped, includingtests/ui.tsc --noEmitreports the same 9 errors asmain, and no new ones.RasterLayer.from_geotiff, the only path that uses deck.gl-raster'sRasterTileLayer. I checked it by hand with a throwaway UI test. It opens a 2048×2048 EPSG:32618 COG with 3 overviews and renders it with no basemap. Tiles reach the canvas on this branch and onmain, and the browser console output is the same on both.🤖 Written by Claude Code