Interface MapHoverBindingOptionsExperimental

Options for useMapHoverBinding.

interface MapHoverBindingOptions {
    enabled?: boolean;
    layerIds: readonly string[];
    sourceId: string;
    sourceLayer?: string;
}

Properties

enabled?: boolean

Disable the binding without unmounting.

true
layerIds: readonly string[]

Layer ids whose pointer moves publish hover.

sourceId: string

MapLibre source id whose features participate.

sourceLayer?: string

Vector source-layer (tile sources).