Skip to content

RasterMaterial

RasterMaterial holds the render options for a raster layer’s imagery. It is set via the raster key. All fetch/tiling config (zoom range, TMS, …) lives on the referenced raster-tile source, not here.

Type: boolean | undefined

Description: Whether to show the raster imagery.

{ raster: { show: true } }

Type: Color

Description: Tint color applied to the raster imagery, as a Color instance.

import { Color } from "@navaramap/three";
{ raster: { color: new Color().setHex(0xffffff) } }

Type: number | undefined

Description: Opacity of the raster imagery, from 0.0 to 1.0.

{ raster: { opacity: 0.8 } }

Type: boolean | undefined

Description: Whether to show per-tile bounding boxes. Used for debugging.

{ raster: { showBoundingBox: true } }