Maps API for JavaScript Developer's Guide

H.util.Event

Class Summary

This is a base event class which is used for all events dispatched by any instance of EventTarget within the API.

[ For full details, see the Class Details ]

Property Summary

Table 1. Properties
Properties

target : {*}

This property holds the object which triggered the event.

currentTarget : {*}

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

type : {string}

This property holds the name of the dispatched event.

defaultPrevented : {boolean}

This property holds indicates if preventDefault was called on the current event.

CAPTURING_PHASE : {number}

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

AT_TARGET : {number}

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

BUBBLING_PHASE : {number}

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

eventPhase : {number}

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

Method Summary

Table 2. Methods
Methods

preventDefault ()

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

stopPropagation ()

This method stops the propagation of the event.

Class Description

This is a base event class which is used for all events dispatched by any instance of EventTarget within the API.

Constructor Details

H.util.Event(type, opt_target)

Parameters:
 
type:
{string}
 
Event Type.
opt_target:
{Object=} [optional]
 
A reference to the object that is the target of the given event. It must implement the EventTarget interface.

Property Details

target: {*}

This property holds the object which triggered the event.

currentTarget: {*}

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

type: {string}

This property holds the name of the dispatched event.

defaultPrevented: {boolean}

This property holds indicates if preventDefault was called on the current event.

CAPTURING_PHASE: {number}

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

AT_TARGET: {number}

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

BUBBLING_PHASE: {number}

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

eventPhase: {number}

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

Method Details

preventDefault ()

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

stopPropagation ()

This method stops the propagation of the event.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.