Type Alias: COGLayerProps<DataT>
COGLayerProps<
DataT> =CompositeLayerProps&COGLayerDataProps<DataT> &object
Defined in: packages/deck.gl-geotiff/src/cog-layer.ts:106
Props that can be passed into the COGLayer.
Type Declaration
debug?
optionaldebug:boolean
Enable debug visualization showing the triangulation mesh
Default
false
debugOpacity?
optionaldebugOpacity:number
Opacity of the debug mesh overlay (0-1)
Default
0.5
epsgResolver?
optionalepsgResolver:EpsgResolver
A function callback for parsing numeric EPSG codes to projection
information (as returned by wkt-parser).
The default implementation:
- makes a request to epsg.io to resolve EPSG codes found in the GeoTIFF.
- caches any previous requests
- parses PROJJSON response with
wkt-parser
geotiff
geotiff:
GeoTIFF|string|URL|ArrayBuffer
Cloud-optimized GeoTIFF input.
- URL or
stringpointing to a COG - ArrayBuffer containing the COG data
- An instance of the GeoTIFF class.
maxError?
optionalmaxError:number
Maximum reprojection error in pixels for mesh refinement. Lower values create denser meshes with higher accuracy.
Default
0.125
onGeoTIFFLoad()?
optionalonGeoTIFFLoad: (geotiff,options) =>void
Called when the GeoTIFF metadata has been loaded and parsed.
Parameters
geotiff
options
geographicBounds
{ east: number; north: number; south: number; west: number; }
Bounds of the image in geographic coordinates (WGS84) [minLon, minLat, maxLon, maxLat]
geographicBounds.east
number
geographicBounds.north
number
geographicBounds.south
number
geographicBounds.west
number
projection
ProjectionDefinition
Returns
void
pool?
optionalpool:DecoderPool
Worker pool for decoding image chunks.
If none is provided, a default Pool will be created and shared between all COGLayer and GeoTIFFLayer instances.
signal?
optionalsignal:AbortSignal
A user-provided AbortSignal to cancel loading.
This can be useful in combination with the MosaicLayer, so that when a mosaic source is out of the viewport, all of its tile requests are automatically aborted.
Type Parameters
DataT
DataT extends MinimalDataT = DefaultDataT