Repository navigation
docs: update the guides and READMEs for 0.10 - #865
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
| - **Flexible reprojection**: GPU-based raster reprojection from most projections[^1] | ||
| - **Efficient streaming**: Intelligent COG rendering fetches only visible image portions | ||
| - **Efficient streaming**: Intelligent COG rendering fetches only visible image portions, merging nearby reads into few HTTP range requests | ||
| - **Shared sources**: Open a dataset once with `COGSource`, `MultiCOGSource` or `ZarrSource`, and draw it with any number of layers |
There was a problem hiding this comment.
Maybe a question for later, especially when we revamp caching. I think right now caching lives on the layer (i.e. maxCacheSize and maxCacheByteSize refer to the layer's cache) but perhaps we should move caching to the source instead of the layer.
There was a problem hiding this comment.
Note
This comment was written by Claude (Claude Code), not by @kylebarron.
No change here; agreed, it's a question for the caching revamp. Today there are two caches:
- The range reader's byte cache already sits below the layers. Every COG source reads through
DEFAULT_RANGE_READERby default, so layers that share a source, or open the same file, share its bytes. - Each layer's tile cache (
maxCacheSize,maxCacheByteSize) holds decoded tiles and their GPU textures.
Moving the decoded tiles to the source would let the layers that share a source share decoded pixels. The textures would likely stay with the layer that draws them. That's the CPU/GPU split in #516. For comparison, OpenLayers went the other way in v10: it moved its tile cache from the source into the layer renderer, keyed by source and tile, and keeps only file-level state, such as headers and byte caches, on the source.
🤖 Written by Claude Code
|
|
||
| | Layer | Source | Draws | | ||
| | --- | --- | --- | | ||
| | {@link COGLayer} | {@link COGSource} | One COG. | |
There was a problem hiding this comment.
Is this {@link syntax markdown?
There was a problem hiding this comment.
Note
This comment was written by Claude (Claude Code), not by @kylebarron.
Is this
{@linksyntax markdown?
No, it's TSDoc. TypeDoc resolves it when it renders this README as the package's page on the docs site, where it becomes a link to the symbol's page. GitHub and npm render the README as plain Markdown, so they show {@link COGLayer} as is. The README already used it in the line above this table, and the deck.gl-zarr and geotiff READMEs use it too.
Markdown links to the docs site work in all three places. This PR already uses them in the deck.gl-raster README, where {@link} can't reach another package anyway. Should I switch these READMEs to Markdown links too? That's this table, the line above it, and {@link ZarrLayer} and {@link RasterArray} in the deck.gl-zarr and geotiff READMEs.
🤖 Written by Claude Code
There was a problem hiding this comment.
Note
This comment was written by Claude (Claude Code), not by @kylebarron.
Switched in 3bb14922: every {@link} in the READMEs is now a Markdown link to the symbol's page on the docs site. That's the 7 in this README, ZarrLayer in deck.gl-zarr's and RasterArray in geotiff's. TypeDoc still reports no warnings.
🤖 Written by Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Note
This PR was written by Claude (Claude Code), not by @kylebarron.
A docs pass for 0.10, so that the site deployed with the release describes the 0.10 API.
Changes
docs/guides/intro.md):range-readerrow.GeoTIFFLayer, which no longer exists, and adds the other layers, the sources,RasterTileLayer, the range reader and zarrita.MosaicLayeroverparseVRTitems.ZarrLayer. Both layer links are now URLs. A{@link}to another package's symbol renders as plain text on the docs site, and literally on GitHub and npm.../range-reader/README.md, which TypeDoc turns into a copy of the raw file (_media/README.md). They now link the range-reader API page.crossPackageLinks, which had no entries for the 0.10 types. It now mapsRasterSource,DEFAULT_RANGE_READER,COGSource,MultiCOGSource,ZarrSource, therange-readertypes and theprojtypes they use.COGSource's page, for example, now links "ExtendsRasterSource".GetTileDataOptionsJSDoc linkedZarrLayerProps.getTileData, which TypeDoc can't resolve. That was the only TypeDoc warning.Checked
docusaurus generate-typedocreports no warnings, down from one, and every page thatcrossPackageLinksmaps to exists in its output.docusaurus buildsucceeds and reports no broken links. Its two warnings are on main too:onBrokenMarkdownLinksis deprecated, anddocs/docsdoesn't exist.noUnusedParametersonrenderSource'sitem, whichMosaicLayer's own docs also leave unused.Closes #853
🤖 Written by Claude Code