Skip to main content

Class: ZarrLayer<DataT, Dtype>

Defined in: packages/deck.gl-zarr/src/zarr-layer.ts:143

ZarrLayer renders a GeoZarr dataset using a tiled approach with reprojection.

Its source is an opened ZarrSource, or a zarrita store, group or array for the layer to open. The caller is responsible for supplying getTileData (which fetches and converts the zarr chunk) and renderTile (which converts the result into a RenderTileResult for the GPU). This keeps the layer agnostic about data format and rendering pipeline.

Extends​

Type Parameters​

DataT​

DataT extends MinimalTileData = MinimalTileData

Dtype​

Dtype extends zarr.DataType = zarr.DataType

Properties​

state​

state: object & object

Defined in: packages/deck.gl-zarr/src/zarr-layer.ts:149

Type Declaration​

loadingMetadata?​

optional loadingMetadata?: boolean

True while the latest metadata load is in flight.

metadataAbortController?​

optional metadataAbortController?: AbortController

Aborts the metadata load in flight when a newer one starts or the layer is removed.

refetchCount?​

optional refetchCount?: number

The number of refetches, part of the inner TileLayer's id.

source?​

optional source?: ZarrSource<Dtype>

The source the layer draws: source itself, or the one opened from it.

checked?​

optional checked?: object

The source and selection last checked against each other, and whether the selection fits the source.

checked.fits​

fits: boolean

checked.selection​

selection: Record<string, SliceInput>

checked.source​

source: ZarrSource<Dtype>

Overrides​

RasterTileLayer.state


layerName​

static layerName: string = "ZarrLayer"

Defined in: packages/deck.gl-zarr/src/zarr-layer.ts:147

Overrides​

RasterTileLayer.layerName

Methods​

updateState()​

updateState(params): void

Defined in: packages/deck.gl-zarr/src/zarr-layer.ts:164

Parameters​

params​

UpdateParameters<ZarrLayer<DataT, Dtype>>

Returns​

void

Overrides​

RasterTileLayer.updateState