Skip to content

attachInteractions

attachInteractions(map, projection, options?): InteractionsHandle

Defined in: packages/core/src/interactions/attach.ts:303

Wire a declarative interactions projection onto a host-owned or compiled map.

ParameterTypeDescription
mapmaplibregl.MapAny maplibregl.Map the host owns; no <ml-map> needed.
projectionInteractionsProjectionThe declarative projection from projectInteractions.
optionsAttachInteractionsOptionsRegistry, host handler map, and capability policy.

InteractionsHandle

A lifecycle handle exposing resetFeatureState/detach/destroy.