Interface ClassBreaksRendererDescriptorExperimental

Serializable class-breaks descriptor.

interface ClassBreaksRendererDescriptor {
    breaks: readonly ClassBreakEntry[];
    colors?: readonly string[];
    defaultColor?: string;
    defaultLabel?: string;
    defaultStyle?: RendererStyle;
    field: string;
    kind: "class-breaks";
    layerType?: string;
}

Hierarchy (view full)

Properties

breaks: readonly ClassBreakEntry[]

Ordered class breaks (ascending thresholds).

colors?: readonly string[]

Positional palette applied to breaks without an explicit color.

defaultColor?: string

Color for values below the first threshold (and legend default swatch).

defaultLabel?: string
defaultStyle?: RendererStyle

Advanced default override; replaces defaultColor.

field: string

Numeric feature property driving the classification.

kind
layerType?: string

Force a MapLibre layer type instead of deriving it from geometry.