SDK JS
    Preparing search index...

    Interface UniqueValueSymbology

    Colour features by exact attribute value (categories: type, suburb, status, owner…).

    interface UniqueValueSymbology {
        defaultColor?: SymbologyColor;
        field: string;
        hideOthers?: boolean;
        type: "uniqueValue";
        values: readonly {
            color: SymbologyColor;
            opacity?: number;
            value: string | number;
        }[];
    }
    Index

    Properties

    defaultColor?: SymbologyColor

    Applied to features matching no entry. Omit to leave them unstyled.

    field: string

    Attribute field name, as published by the service.

    hideOthers?: boolean

    Hide features matching no entry instead of leaving them unstyled. Default false.

    type: "uniqueValue"
    values: readonly {
        color: SymbologyColor;
        opacity?: number;
        value: string | number;
    }[]

    One entry per category. Values are compared with === after string coercion.