Svelte Maplibre

API / Layers

HillshadeLayer

Add a MapLibre hillshade layer to the map. It shows terrain shading from a raster DEM source, such as RasterDEMTileSource.

This is a thin wrapper around Layer with type set to hillshade. Place it inside a source component such as GeoJSON, or set the source prop.

import { HillshadeLayer } from 'svelte-maplibre';

Generic parameters: FEATURE extends Feature = Feature

Examples

Props

  • paint HillshadeLayerSpecification["paint"]
  • layout HillshadeLayerSpecification["layout"]

Inherited from CommonLayerProps

Source: src/lib/HillshadeLayer.svelte