GeoLeaf Core API - v3.0.0
    Preparing search index...

    Hillshade (terrain shadow) configuration for basemaps with type: "hillshade". Uses a raster-dem source and a MapLibre hillshade render layer.

    interface HillshadeConfig {
        demUrl: string;
        demEncoding?: "terrarium" | "mapbox";
        demMaxZoom?: number;
        shadowColor?: string;
        highlightColor?: string;
        accentColor?: string;
        exaggeration?: number;
        illuminationDirection?: number;
        illuminationAnchor?: "map" | "viewport";
    }
    Index

    Properties

    demUrl: string

    DEM tile URL template. Required. E.g. "https://tiles.example.com/{z}/{x}/{y}.png".

    demEncoding?: "terrarium" | "mapbox"

    Tile encoding format for the DEM source. Default: "terrarium".

    demMaxZoom?: number

    Maximum zoom level available for DEM tiles. Default: 15.

    shadowColor?: string

    Hillshade shadow color (CSS color string). Default: MapLibre default.

    highlightColor?: string

    Hillshade highlight color (CSS color string). Default: MapLibre default.

    accentColor?: string

    Hillshade accent color (CSS color string). Default: MapLibre default.

    exaggeration?: number

    Vertical exaggeration intensity (0–1). Default: MapLibre default (0.5).

    illuminationDirection?: number

    Sun illumination direction in degrees clockwise from north. Default: 335.

    illuminationAnchor?: "map" | "viewport"

    Whether illumination is relative to the viewport or fixed to the map. Default: "viewport".