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

    Interface FeatureStateSelector

    Feature-state source, feature, and key selector.

    See mln_feature_state_selector in the C API reference.

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

    Optional feature ID. Required by set and get, optional for remove. A numeric feature ID matches its decimal text, such as "7" for the GeoJSON id 7.

    sourceId: string

    Source ID. Required and borrowed for the duration of the call.

    sourceLayerId?: string

    Optional source layer ID. Required for vector-source disambiguation.

    stateKey?: string

    Optional state key. Used only by remove and requires feature_id.