Interface MapSelectionExplorationBindingOptions

interface MapSelectionExplorationBindingOptions {
    layer: string;
    multiSelect?: boolean;
    onChange?: ((selectedIds: ReadonlySet<string | number>) => void);
    onSelectionTargetsChange?: ((selectedTargets: readonly SourceQualifiedFeatureSelectionTarget[]) => void);
    replaceSelection?: boolean;
    source: string;
    sourceLayer?: string;
    stateKey?: string;
}

Hierarchy (view full)

Properties

layer: string

Layer ID to listen for click events on.

multiSelect?: boolean

Allow multiple features to be selected simultaneously.

false
onChange?: ((selectedIds: ReadonlySet<string | number>) => void)

Called whenever the selection changes.

onSelectionTargetsChange?: ((selectedTargets: readonly SourceQualifiedFeatureSelectionTarget[]) => void)

Called whenever the source-qualified selection changes.

replaceSelection?: boolean

Replace the exploration selection with the map selection.

true
source: string

Source ID to set feature state on.

sourceLayer?: string

Source layer (required for vector-tile sources).

stateKey?: string

Feature-state key to toggle.

"selected"