Type Alias HillshadeLayerSpecification
filter?: FilterSpecification;
id: string;
layout?: { visibility?: VisibilitySpecification };
maxzoom?: number;
metadata?: unknown;
minzoom?: number;
paint?: {
"hillshade-accent-color"?: PropertyValueSpecification<
ColorSpecification,
>;
"hillshade-accent-color-transition"?: TransitionSpecification;
"hillshade-exaggeration"?: PropertyValueSpecification<number>;
"hillshade-exaggeration-transition"?: TransitionSpecification;
"hillshade-highlight-color"?: PropertyValueSpecification<
ColorArraySpecification,
>;
"hillshade-highlight-color-transition"?: TransitionSpecification;
"hillshade-illumination-altitude"?: PropertyValueSpecification<
NumberArraySpecification,
>;
"hillshade-illumination-anchor"?: PropertyValueSpecification<
"map"
| "viewport",
>;
"hillshade-illumination-direction"?: PropertyValueSpecification<
NumberArraySpecification,
>;
"hillshade-method"?: PropertyValueSpecification<
"standard"
| "basic"
| "combined"
| "igor"
| "multidirectional",
>;
"hillshade-shadow-color"?: PropertyValueSpecification<
ColorArraySpecification,
>;
"hillshade-shadow-color-transition"?: TransitionSpecification;
resampling?: PropertyValueSpecification<"linear" | "nearest">;
};
source: string;
"source-layer"?: string;
type: "hillshade";
}
Properties
Optionalfilter
id
Unique layer name.
Optionallayout
Layout properties for the layer.
Type Declaration
Optionalvisibility?: VisibilitySpecificationWhether this layer is displayed.
Optionalmaxzoom
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
Optionalmetadata
Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.
Optionalminzoom
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
Optionalpaint
"hillshade-accent-color"?: PropertyValueSpecification<
ColorSpecification,
>;
"hillshade-accent-color-transition"?: TransitionSpecification;
"hillshade-exaggeration"?: PropertyValueSpecification<number>;
"hillshade-exaggeration-transition"?: TransitionSpecification;
"hillshade-highlight-color"?: PropertyValueSpecification<
ColorArraySpecification,
>;
"hillshade-highlight-color-transition"?: TransitionSpecification;
"hillshade-illumination-altitude"?: PropertyValueSpecification<
NumberArraySpecification,
>;
"hillshade-illumination-anchor"?: PropertyValueSpecification<
"map"
| "viewport",
>;
"hillshade-illumination-direction"?: PropertyValueSpecification<
NumberArraySpecification,
>;
"hillshade-method"?: PropertyValueSpecification<
"standard"
| "basic"
| "combined"
| "igor"
| "multidirectional",
>;
"hillshade-shadow-color"?: PropertyValueSpecification<
ColorArraySpecification,
>;
"hillshade-shadow-color-transition"?: TransitionSpecification;
resampling?: PropertyValueSpecification<"linear" | "nearest">;
}
Default paint properties for this layer.
Type Declaration
Optionalhillshade-accent-color?: PropertyValueSpecification<ColorSpecification>The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
Optionalhillshade-accent-color-transition?: TransitionSpecificationOptionalhillshade-exaggeration?: PropertyValueSpecification<number>Intensity of the hillshade
Optionalhillshade-exaggeration-transition?: TransitionSpecificationOptionalhillshade-highlight-color?: PropertyValueSpecification<ColorArraySpecification>The shading color of areas that faces towards the light source(s). Only when
hillshade-methodis set tomultidirectionalcan you specify multiple light sources.Optionalhillshade-highlight-color-transition?: TransitionSpecificationOptionalhillshade-illumination-altitude?: PropertyValueSpecification<NumberArraySpecification>The altitude of the light source(s) used to generate the hillshading with 0 as sunset and 90 as noon. Only when
hillshade-methodis set tomultidirectionalcan you specify multiple light sources.Optionalhillshade-illumination-anchor?: PropertyValueSpecification<"map" | "viewport">Direction of light source when map is rotated.
Optionalhillshade-illumination-direction?: PropertyValueSpecification<NumberArraySpecification>The direction of the light source(s) used to generate the hillshading with 0 as the top of the viewport if
hillshade-illumination-anchoris set toviewportand due north ifhillshade-illumination-anchoris set tomap. Only whenhillshade-methodis set tomultidirectionalcan you specify multiple light sources.Optionalhillshade-method?: PropertyValueSpecification<
"standard"
| "basic"
| "combined"
| "igor"
| "multidirectional",
>The hillshade algorithm to use, one of
standard,basic,combined,igor, ormultidirectional.
Optionalhillshade-shadow-color?: PropertyValueSpecification<ColorArraySpecification>The shading color of areas that face away from the light source(s). Only when
hillshade-methodis set tomultidirectionalcan you specify multiple light sources.Optionalhillshade-shadow-color-transition?: TransitionSpecificationOptionalresampling?: PropertyValueSpecification<"linear" | "nearest">The resampling/interpolation method to use for overscaling, also known as texture magnification filter.

source
Name of a source description to be used for this layer. Required for all layer types except background.
Optionalsource-layer
Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources.
A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The
feature-stateexpression is not supported in filter expressions.