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?
optionalonSourceLoad?: (source) =>void
Called with the source the layer opened, when source isn't an opened
COGSource already.
Parameters
source
Returns
void
pool?
optionalpool?:DecoderPool
Worker pool for decoding image chunks. Without one, every layer shares a default pool.
source
The Cloud-Optimized GeoTIFF to draw: an opened COGSource, or one of these for the layer to open with the defaults of COGSource.open:
- a URL or
stringpointing to a COG - an ArrayBuffer containing the COG data
- an opened GeoTIFF
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.