@honua/sdk-js
    Preparing search index...

    Interface MapSelectionBindingOptionsExperimental

    interface MapSelectionBindingOptions {
        enabled?: boolean;
        layerIds: readonly string[];
        multiSelect?: boolean;
        sourceId: string;
        sourceLayer?: string;
        stateKey?: string;
    }
    Index

    Properties

    enabled?: boolean

    Disable the binding without unmounting.

    true
    
    layerIds: readonly string[]

    Layer ids whose clicks toggle selection.

    multiSelect?: boolean

    Map clicks add to the selection instead of replacing it.

    false
    
    sourceId: string

    MapLibre source id whose features participate.

    sourceLayer?: string

    Vector source-layer (tile sources).

    stateKey?: string

    Feature-state key mirrored for selected features.

    "selected"