Class: Pointer
- Last UpdatedJun 30, 2025
- 2 minute read
H.mapevents.Pointer
This class represents a pointer on the map surface. A pointer in a platform-specific definition can refer to the mouse, touch, pen or any pointing device which can trigger browser events.
Members
-
This enumeration defines identifiers for MouseEvent.button values
Properties:
-
button H.mapevents.Pointer.Button non-null
-
This property indicates which pointing device button has changed.
-
buttons H.mapevents.Pointer.Buttons non-null
-
This property indicates which pointer device buttons are being pressed.
-
dragTarget H.map.Object | H.Map
-
This property holds the object which is currently dragged by the pointer.
-
This property holds the unique identifier of the pointer.
-
target H.map.Object | H.Map
-
This property holds the map object directly under the pointer. Its value can be
null
if the pointer is outside the map viewport. -
This property holds the identifier of the pointer type, which can be 'mouse', 'touch' or 'pen'.
-
This property holds the x-coordinate of the pointer in the map viewport.
-
This property holds the y-coordinate of the pointer in the map viewport.
Type Definitions
-
To store MouseEvent.buttons values in a bitmask.
0
: Indicates that no button is pressed1
: Indicates that the left mouse button is pressed or Touch contact or Pen contact2
: Indicates that the right mouse button is pressed, or Pen contact with barrel button pressed4
: Indicates that the middle mouse button is pressed