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

    Interface SelectionHandlerOptions

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

    Hierarchy (View Summary)

    Index

    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.

    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"