The Interactions controller allows you to observe interactions with the map
onPointerClick(
params
: {handler
: (event
:MapInteractionEvent
) =>void
; }):VoidFunction
Allows you to be notified the user clicks on the map.
Parameters
Parameter | Type |
---|---|
Returns
VoidFunction
A function to unsubscribe from the listener
Example
onPointerMove(
params
: {handler
: (event
:MapInteractionEvent
) =>void
; }):VoidFunction
Allows you to be notified the user moves the mouse over the map.
Parameters
Returns
VoidFunction
A function to unsubscribe from the listener
Example
Parameter | Type | Description |
---|---|---|
params
object
params.handler
(event
: MapInteractionEvent
) => void
params
object
Params for the listener
params.handler
(event
: MapInteractionEvent
) => void
The handler function