Interface HonuaInteractionLayerComponentExperimental

A layer addressed as layer:{id}. map is what the featureSelect/featureHover primitives bind to; the optional methods are the layer-scoped action targets.

interface HonuaInteractionLayerComponent {
    layerId?: string;
    map?: InteractiveMap;
    multiSelect?: boolean;
    sourceId?: string;
    sourceLayer?: string;
    setFilter?(clause: undefined | FilterClause): void;
    setVisibility?(visible: boolean): void;
}

Properties

layerId?: string

Rendered layer id clicks/hovers are observed on. Defaults to the ref's id.

MapLibre-style interactive map this layer renders on — the event source for featureSelect/featureHover.

multiSelect?: boolean

Select multiple features rather than replacing on each click.

false
sourceId?: string

Source id feature-state is written to. Defaults to the ref's id.

sourceLayer?: string

Source layer, for vector-tile sources.

Methods