Maps API for JavaScript Developer's Guide

H.mapevents.Pointer

Class Summary

Class representing pointer on the map surface. A pointer in platform specific definition would mean either mouse, touch, pen or any pointing device which can trigger browser events.

[ For full details, see the Class Details ]

Property Summary

Table 1. Properties
Properties

static viewportX : {number}

X coordinate on the map's viewport

static viewportY : {number}

Y coordinate on the map's viewport

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

Map object directly under the pointer. Can be null if if pointer is out of the map viewport

static id : {number}

Pointer unique identifier.

static type : {string}

Pointer type can be: 'mouse', 'touch' or 'pen'

static dragTarget : {(H.map.Object | H.Map)}

Object which is currently dragged by the pointer

static button : {H.mapevents.Pointer.Button}

Indicates which pointer device button has changed.

Class Description

Class representing pointer on the map surface. A pointer in platform specific definition would mean either mouse, touch, pen or any pointing device which can trigger browser events.

Constructor Details

H.mapevents.Pointer(viewportX, viewportY, id, type, opt_button, opt_buttons)

Parameters:
 
viewportX:
{number}
 
pointer position on x-axis
viewportY:
{number}
 
pointer position on y-axis
id:
{number}
 
unique pointer identifier among currently available pointers
type:
{string}
 
type of pointer can be i.e 'mouse', 'touch'. 'pen'
opt_button:
{H.mapevents.Pointer.Button=} [optional]
 
Indicates which pointer device button has changed.
opt_buttons:
{number=} [optional]
 
Indicates which pointer device buttons are being pressed, expressed as a bitmask. Uses the same values, as "buttons" in Pointer Events spec.

Property Details

static viewportX: {number}

X coordinate on the map's viewport

static viewportY: {number}

Y coordinate on the map's viewport

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

Map object directly under the pointer. Can be null if if pointer is out of the map viewport

static id: {number}

Pointer unique identifier.

static type: {string}

Pointer type can be: 'mouse', 'touch' or 'pen'

static dragTarget: {(H.map.Object | H.Map)}

Object which is currently dragged by the pointer

static button: {H.mapevents.Pointer.Button}

Indicates which pointer device button has changed.

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.