Skip to content

RasterMaterial

RasterMaterial holds the display options of a raster layer: its imagery, or its hillshade or elevation heatmap. 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 layer. false also hides its hillshade or elevation heatmap.

{ raster: { show: true } }

Type: Color

Description: Tint color applied to the raster imagery, as a Color instance. The hillshade and the elevation heatmap ignore it.

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

Type: number | undefined

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

On a hillshade layer it sets how strongly the hillshade shades the terrain: at 0.0 the terrain is shaded as without the hillshade.

{ raster: { opacity: 0.8 } }

Type: boolean | undefined

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

{ raster: { showBoundingBox: true } }