Maps API for JavaScript Developer's Guide

H.map.IInteraction

Interface Summary

Interface describes interaction with the view port. Interaction will reflect view change depending on the interaction coordinates passed and the modifiers which specify the type of interaction.

[ For full details, see the Interface Details ]

Method Summary

Table 1. Methods
Methods

static startInteraction (modifiers, opt_kinetics)

This method starts the interaction with the view port. Should be called every time when new interaction is started i.e mouse grab, or touch start.

static interaction (x, y, opt_bx, opt_by, opt_timestamp)

This method resolves direct screen (view port) interaction. This function will modify the current view according to values passed in.

static endInteraction (opt_preventKinetics)

This method ends interaction and applies kinetic movement if defined by using startInteraction method

Interface Description

Interface describes interaction with the view port. Interaction will reflect view change depending on the interaction coordinates passed and the modifiers which specify the type of interaction.

Method Details

static startInteraction (modifiers, opt_kinetics)

This method starts the interaction with the view port. Should be called every time when new interaction is started i.e mouse grab, or touch start.

Parameters:
 
modifiers:
{number}
 
a bitmask which specifies what operations should performed during every interaction
opt_kinetics:
{H.util.kinetics.IKinetics=} [optional]
 
specifies kinetic move at the end of interaction

static interaction (x, y, opt_bx, opt_by, opt_timestamp)

This method resolves direct screen (view port) interaction. This function will modify the current view according to values passed in.

Parameters:
 
x:
{number}
 
viewport x coordinate
y:
{number}
 
viewport y coordinate
opt_bx:
{number=} [optional]
 
x coordinate for second pointer/touch if present
opt_by:
{number=} [optional]
 
y coordinate for secong pointer/touch if present
opt_timestamp:
{number=} [optional]
 
known timestamp which should be passed

static endInteraction (opt_preventKinetics)

This method ends interaction and applies kinetic movement if defined by using startInteraction method

Parameters:
 
opt_preventKinetics:
{boolean=} [optional]
 
if set to true will prevent kinetics behaviour at the end of interaction

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.