Maps API for JavaScript Developer's Guide

H.mapevents.Event

Class Summary

Extends: H.util.Event

Custom map event. Contains list of pointers on the map, list of changed pointers and original event. Inherits from H.util.Event.

[ For full details, see the Class Details ]

Property Summary

Table 1. Properties
Properties

pointers : {Array<H.mapevents.Pointer>}

Pointers which are currently on the screen

changedPointers : {Array<H.mapevents.Pointer>}

Pointers which has changed in course of event

targetPointers : {Array<H.mapevents.Pointer>}

Pointers which are on same target as the current pointer

currentPointer : {H.mapevents.Pointer}

Current pointer

originalEvent : {Event}

Original event fired by the browser

target : {(H.map.Object | H.Map)}

Object which triggered event. Can be the map object (i.e marker or polyline) or the map itself

currentTarget : {(H.map.Object | H.Map)}

Object which has listener attached

type : {string}

Name of the dispatched event

defaultPrevented : {boolean}

Indicates if preventDefault was called on the current event

Method Summary

Table 2. Methods
Methods

preventDefault ()

Sets defaultPrevented to true. Which can be used to prevent some default behavior.

stopPropagation ()

Stops propagation for current event.

Class Description

Custom map event. Contains list of pointers on the map, list of changed pointers and original event. Inherits from H.util.Event.

Constructor Details

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

Parameters:
 
type:
{string}
 
type of event
pointers:
{Array<H.mapevents.Pointer>}
 
pointers which are currently on the screen
changedPointers:
{Array<H.mapevents.Pointer>}
 
pointers which changed during event
targetPointers:
{Array<H.mapevents.Pointer>}
 
pointers on the event target
currentPointer:
{H.mapevents.Pointer}
 
pointer which triggered the event
target:
{(H.Map | H.map.Object)}
 
target map object which triggered event
originalEvent:
{Event}
 
original dom event

Property Details

pointers: {Array<H.mapevents.Pointer>}

Pointers which are currently on the screen

changedPointers: {Array<H.mapevents.Pointer>}

Pointers which has changed in course of event

targetPointers: {Array<H.mapevents.Pointer>}

Pointers which are on same target as the current pointer

currentPointer: {H.mapevents.Pointer}

Current pointer

originalEvent: {Event}

Original event fired by the browser

target: {(H.map.Object | H.Map)}

Object which triggered event. Can be the map object (i.e marker or polyline) or the map itself

currentTarget: {(H.map.Object | H.Map)}

Object which has listener attached

type: {string}

Name of the dispatched event

defaultPrevented: {boolean}

Indicates if preventDefault was called on the current event

Method Details

preventDefault ()

Sets defaultPrevented to true. Which can be used to prevent some default behavior.

stopPropagation ()

Stops propagation for current 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.