Class: ContextMenuEvent
- Last UpdatedMay 21, 2025
- 2 minute read
H.mapevents.ContextMenuEvent
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. -
This property holds the original event.
-
target H.map.Object | H.Map overrides
-
This property holds the target for the event.
-
type string inherited
-
This property holds the name of the dispatched event.
-
This property holds the x-position in the map viewport.
-
This property holds the y-position in the map viewport.