Skip to main content

Type Alias: COGLayerProps<DataT>

COGLayerProps<DataT> = Omit<RasterTileLayerProps<DataT>, "tilesetDescriptor" | "getTileData" | "renderTile"> & COGLayerDataProps<DataT> & object

Defined in: packages/deck.gl-geotiff/src/cog-layer.ts:65

Props that can be passed into the COGLayer.

Type Parameters​

DataT​

DataT extends MinimalTileData = TextureDataT

Type Declaration​

onSourceLoad?​

optional onSourceLoad?: (source) => void

Called with the source the layer opened, when source isn't an opened COGSource already.

Parameters​

source​

COGSource

Returns​

void

pool?​

optional pool?: DecoderPool

Worker pool for decoding image chunks. Without one, every layer shares a default pool.

source​

source: COGSource | COGInput

The Cloud-Optimized GeoTIFF to draw: an opened COGSource, or one of these for the layer to open with the defaults of COGSource.open:

Open the COG yourself to change those defaults, such as the EPSG resolver or the request limiter, or to share one opened COG between layers.

Keep the same object across renders: a new one starts the layer's tiles over.