Class: Event

H.mapevents.Event

new H.mapevents.Event (type, pointers, changedPointers, targetPointers, currentPointer, target, originalEvent)

This class represents a custom map event. It contains a list of pointers on the map, a list of changed pointers, and the original event.

Name Type Description
type string

type of event

pointers Array.<!H.mapevents.Pointer>

An array of pointers currently on the screen

changedPointers Array.<!H.mapevents.Pointer>

An array of pointers which changed during event

targetPointers Array.<!H.mapevents.Pointer>

An array of pointers on the event target

currentPointer H.mapevents.Pointer

A pointer that triggered the event

target H.Map | H.map.Object

The target map object which triggered event

originalEvent Event

The original DOM event

Extends

Members

AT_TARGET number constant inherited

This property indicates that the event is being evaluated at the target.

BUBBLING_PHASE number constant inherited

This property identifies the current event phase as the bubbling phase.

CAPTURING_PHASE number constant inherited

This property identifies the current event phase as the capturing phase.

changedPointers Array.<!H.mapevents.Pointer> non-null

This property holds an array of pointers that have changed in course of event.

currentPointer H.mapevents.Pointer non-null

This property holds the current pointer.

currentTarget * inherited

This property holds an object that receives notification of the event (via an attached listener).

defaultPrevented boolean inherited

This property holds a value indicating if preventDefault() was called on the current event.

eventPhase number inherited

This property indicates which phase of the event flow is being evaluated.

originalEvent Event non-null

This property holds the original event fired by the browser.

pointers Array.<!H.mapevents.Pointer> non-null

This property holds an array of pointers that are currently on the screen.

This property holds the object which triggered the event. It can be a map object (for example a marker or a polyline) or the map itself.

targetPointers Array.<!H.mapevents.Pointer> non-null

This property holds an array of pointers that are on same target as the current pointer.

type string inherited

This property holds the name of the dispatched event.

Methods

preventDefault () inherited

This method sets a flag that can be used to prevent the default behavior when the even is fired.

stopPropagation () inherited

This method stops the propagation of the event.