Type Alias ColorReliefLayerSpecification
filter?: FilterSpecification;
id: string;
layout?: { visibility?: VisibilitySpecification };
maxzoom?: number;
metadata?: unknown;
minzoom?: number;
paint?: {
"color-relief-color"?: ExpressionSpecification;
"color-relief-opacity"?: PropertyValueSpecification<number>;
"color-relief-opacity-transition"?: TransitionSpecification;
resampling?: PropertyValueSpecification<"linear" | "nearest">;
};
source: string;
"source-layer"?: string;
type: "color-relief";
}
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
"color-relief-color"?: ExpressionSpecification;
"color-relief-opacity"?: PropertyValueSpecification<number>;
"color-relief-opacity-transition"?: TransitionSpecification;
resampling?: PropertyValueSpecification<"linear" | "nearest">;
}
Default paint properties for this layer.
Type Declaration
-
Optionalcolor-relief-color?: ExpressionSpecificationDefines the color of each pixel based on its elevation. Should be an expression that uses
["elevation"]as input. -
Optionalcolor-relief-opacity?: PropertyValueSpecification<number>The opacity at which the color-relief will be drawn.
-
Optionalcolor-relief-opacity-transition?: TransitionSpecification -
Optionalresampling?: 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.