Handle events on various map objects
This example shows how to attach listeners to pointer events such as pointerup
, pointerdown
and tap
to various map objects.
Enabling pointer events on H.map.Object
elements requires the presence of the
mapsjs-mapevents
module of the API. Every H.map.Object
implements the
addEventListener()
method, which is used for attaching event listeners.