Skip to content

HillshadeLayerSchema

const HillshadeLayerSchema: ZodObject<object & object, "passthrough", ZodTypeAny, objectOutputType<object & object, ZodTypeAny, "passthrough">, objectInputType<object & object, ZodTypeAny, "passthrough">>

Defined in: packages/core/src/schemas/layer.schema.ts:1060

Hillshade layer for terrain visualization.

Renders raster DEM data as hillshading.

- id: hillshade
type: hillshade
source:
type: raster-dem
url: "https://example.com/terrain.json"
paint:
hillshade-illumination-direction: 315
hillshade-exaggeration: 0.5

Multidirectional (maplibre-gl >= 5.5.0) — one entry per light

paint:
hillshade-method: multidirectional
hillshade-illumination-direction: [270, 315, 0, 45]
hillshade-highlight-color: ["#FF4000", "#FFFF00", "#40ff00", "#00FF80"]
hillshade-shadow-color: ["#00bfff", "#0000ff", "#bf00ff", "#FF0080"]

MapLibre Hillshade Layer