These guides were added retrospectively for
@un-fao/visualization@0.1.0-review.0. They describe the published npm archive,
not original release-tagged guides. API pages still come from that exact
version's declarations; no .1 guides are substituted.
| Task | Guide |
|---|---|
| Render layers without a basemap | DataViewport |
| Render layers over a MapLibre map | DataOverlay |
| Display one single-band raster | SingleBandRasterLayer |
| Discover a collection and display one selected raster | SingleBandRasterCollectionLayer |
This archive declares Deck 9.3.6 or later within 9.3, not Deck 9.4. Install
all root-entry peers even for DataViewport; the same entry exports the MapLibre
overlay. These versions follow the archive's install example, with the package
pinned instead of using today's moving review tag:
npm install @un-fao/visualization@0.1.0-review.0 \
@deck.gl/core@9.3.6 @deck.gl/mapbox@9.3.6 @deck.gl/react@9.3.6 \
maplibre-gl@5.0.0 react@19.0.0 react-dom@19.0.0 react-map-gl@8.1.0
The package supplies its raster layer/runtime dependencies. These examples use its exported layers, not additional Deck layer imports. This is browser/client ESM, not a server-rendered map component.
Provide a sized container, a camera over your data and browser-accessible URLs. Replace example display ranges with values appropriate for your dataset. Catalogue and raster servers need suitable CORS/access support; the package does not configure your authentication or hosting.
The API reference contains all 54 exports, including props, source/style types
and callback-result types. Types are reference information, not extra components
you must import. The runtime also exports isStacCollectionLike and
isStacItemCollectionLike; shape validation alone does not prove that a
dataset can render.
Sources: this archive's README, manifest, public declarations and runtime bundle. Every TypeScript example is checked against that archive, not a new live-network or browser execution test.
The shipped README reports that synchronous raster-reader setup failure can
leave queue accounting stalled, and cancellation does not physically abort
every started raster operation. These guides do not claim those issues were
fixed in .0. The recorded consumer boundary is React 19, Vite 8.0.3,
default-hoisted npm and Bundler-mode TypeScript with skipLibCheck.