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.
Properties
Section titled “Properties”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) } }opacity
Section titled “opacity”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 } }showBoundingBox
Section titled “showBoundingBox”Type: boolean | undefined
Description: Whether to show per-tile bounding boxes. Used for debugging.
{ raster: { showBoundingBox: true } }Related Resources
Section titled “Related Resources”- Raster Layer: how to use this material
- Raster Tile Source: the imagery source (URL, zoom, TMS)