@maplibre/native-ffi
    Preparing search index...

    Interface FeatureStateSelector

    The features whose state to set, read, or remove.

    See mln_feature_state_selector in the C API reference.

    interface FeatureStateSelector {
        featureId?: FeatureId;
        sourceId: string;
        sourceLayerId?: string;
        stateKey?: string;
    }
    Index
    featureId?: FeatureId

    The feature's ID. Setting or reading state needs it. Without it, MapHandle.removeFeatureState() removes the state of every feature in the source layer.

    sourceId: string
    sourceLayerId?: string

    The source layer, for a vector source. Empty for other sources.

    stateKey?: string

    The one key that MapHandle.removeFeatureState() removes. It needs feature_id. Empty removes every key.