Interface: RasterLayerProps
Defined in: packages/deck.gl-raster/src/raster-layer.ts:71
Props for RasterLayer.
Extends
CompositeLayerProps
Properties
debug?
optionaldebug?:boolean
Defined in: packages/deck.gl-raster/src/raster-layer.ts:137
If set, enables debug mode for visualizing the mesh and reprojection process.
debugOpacity?
optionaldebugOpacity?:number
Defined in: packages/deck.gl-raster/src/raster-layer.ts:140
Opacity of the debug overlay.
height
height:
number
Defined in: packages/deck.gl-raster/src/raster-layer.ts:80
Height of the input raster image in pixels
image?
optionalimage?:TextureSource|null
Defined in: packages/deck.gl-raster/src/raster-layer.ts:105
The image to display. Accepts any luma.gl TextureSource (e.g. a URL,
HTMLImageElement, ImageData, etc.). deck.gl manages the texture
lifecycle automatically.
If renderPipeline is also provided, image is prepended as a
CreateTexture module so the pipeline can operate on it.
Default
null
initialTriangulation?
optionalinitialTriangulation?:InitialTriangulation
Defined in: packages/deck.gl-raster/src/raster-layer.ts:93
Optional seed triangulation for the reprojector — e.g. to clamp the mesh to a UV sub-region (such as the valid Web Mercator latitude band). Defaults to the full image. Must be reference-stable across renders to avoid regenerating the mesh every frame.
maxError?
optionalmaxError?:number
Defined in: packages/deck.gl-raster/src/raster-layer.ts:122
Maximum reprojection error for mesh refinement: how far the mesh may draw a point from where it belongs on the map, in output pixels (one input pixel's size on the map, normally at the center of the meshed area). Lower values create denser meshes with higher accuracy.
Default
0.125
renderPipeline?
optionalrenderPipeline?:RasterModule[] |null
Defined in: packages/deck.gl-raster/src/raster-layer.ts:113
Sequence of shader modules to be composed into a render pipeline.
If image is also provided, it is automatically prepended as a
CreateTexture module.
reprojectionFns
reprojectionFns:
ReprojectionFns
Defined in: packages/deck.gl-raster/src/raster-layer.ts:85
Reprojection functions for converting between pixel, input CRS, and output CRS coordinates
width
width:
number
Defined in: packages/deck.gl-raster/src/raster-layer.ts:75
Width of the input raster image in pixels