Use event delegation on map objects
This example shows how to use a single function to listen to thetap event across multiple map objects held within the same object container.
AllH.map.Object elements such as a marker or polygon, along with theH.map.Group container class implement theaddEventListener() method, which is used when attaching an event listener.
When atap event occurs, the fired event is an instance of theH.util.Event class and therefore contains atarget property which is the map object clicked.