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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
map | maplibregl.Map | Any maplibregl.Map the host owns; no <ml-map> needed. |
projection | InteractionsProjection | The declarative projection from projectInteractions. |
options | AttachInteractionsOptions | Registry, host handler map, and capability policy. |
Returns
Section titled “Returns”A lifecycle handle exposing resetFeatureState/detach/destroy.