Skip to content

chore: Bump deck.gl to 9.4.1 and deck.gl-raster to 0.10.0 - #1355

Merged
kylebarron merged 1 commit into
mainfrom
kyle/bump-deck-raster
Nov 13, 2026
Merged

kylebarron merged 1 commit into
mainfrom
kyle/bump-deck-raster

Conversation

@kylebarron

Copy link
Copy Markdown
Member

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.0

The deck.gl overrides in pnpm-workspace.yaml go to ^9.4.1 too. Without that, pnpm keeps every overridden deck.gl package at 9.4.0 and only @deck.gl/react moves. 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-zarr and geotiff, which Lonboard doesn't use. Lonboard only imports RasterTileLayer, TileMatrixSetAdaptor and MinimalTileData, and needs no code changes.

Upstream fixes relevant to Lonboard:

The beforeId fix for interleaved MapLibre (visgl/deck.gl#10734) merged after 9.4.1, so the idle workaround tracked in #1293 stays.

Supersedes Dependabot's #1350, which stops at deck.gl-raster 0.9.0.

Closes #1350

Testing

  • pnpm build, pnpm check and pnpm test (12 tests) pass.
  • uv run pytest passes: 367 passed, 1 skipped, including tests/ui.
  • tsc --noEmit reports the same 9 errors as main, and no new ones.
  • No test covers RasterLayer.from_geotiff, the only path that uses deck.gl-raster's RasterTileLayer. 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 on main, and the browser console output is the same on both.

🤖 Written by Claude Code

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]>
@github-actions github-actions Bot added the chore label Nov 13, 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.

Looks like it was an easy bump with no required changes 🚀

@kylebarron
kylebarron merged commit b222c27 into main Nov 13, 2026
7 checks passed
@kylebarron
kylebarron deleted the kyle/bump-deck-raster branch November 13, 2026 17:11
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]>
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