Powered by Zoomin Software. For more details please contactZoomin

HERE Maps API for JavaScript - API Reference

Product category
Technology
Doc type
Version
Product lifecycle
This publication

HERE Maps API for JavaScript - API Reference: Class: ContextMenuEvent

Table of Contents

Class: ContextMenuEvent

H.mapevents.ContextMenuEvent

new H.mapevents.ContextMenuEvent (viewportX, viewportY, target, originalEvent)

This class represents an event to be fired when a user right-clicks or longpresses on a map object.

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.

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.

items Array.<!H.util.ContextItem> non-null

This property contains ContextItems that be used to create context menu entries and set by listeners of the "contextmenu" event.

originalEvent Event non-null

This property holds the original event.

This property holds the target for the event.

type string inherited

This property holds the name of the dispatched event.

viewportX number

This property holds the x-position in the map viewport.

viewportY number

This property holds the y-position in the map viewport.

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.

Was this article helpful?
TitleResults for “How to create a CRG?”Also Available inAlert