SDK JS
    Preparing search index...

    Interface SelectionStyleOptions

    How a selected feature is drawn: a tinted fill inside, a glowing halo outside.

    The two are configured independently because they do different jobs. The halo is the cue that finds the building in a dense scene — it is drawn over everything and ignores depth, so it works even when the building is partly behind something else. The fill is the confirmation that you picked the right one, and wants to stay subtle: the style texture MULTIPLIES the surface, so a full-strength fill turns a white roof solid colour, hides the building's own texture, and swallows the halo inside it.

    Either half can be switched off on its own: fillStrength: 0 for halo only, haloWidth: 0 for fill only.

    interface SelectionStyleOptions {
        fillColor?: readonly [number, number, number];
        fillStrength?: number;
        haloColor?: readonly [number, number, number];
        haloOpacity?: number;
        haloWidth?: number;
    }
    Index

    Properties

    fillColor?: readonly [number, number, number]

    Fill colour inside the feature, each channel 0-1. Defaults to SelectionStyleOptions.haloColor.

    fillStrength?: number

    How strongly the fill tints the surface, 0 (none) to 1 (replace). Default 0.35.

    haloColor?: readonly [number, number, number]

    Halo colour, each channel 0-1. Default #10ACC7.

    haloOpacity?: number

    Halo opacity, 0-1. Default 0.9.

    haloWidth?: number

    Halo width in CSS pixels. Default 8. 0 draws no halo.