Options
All
  • Public
  • Public/Protected
  • All
Menu

GestureEvents are fired when user interaction with the map occurs. Depending on the GestureEventType, this event object may contain additional properties. Please refer to GestureEventType for details for each event type.

Hierarchy

Overview

Properties

clientPosition

clientPosition: number[]

An array containing the (x,y) position of the event in client coordinates. 0,0 is the upper left corner of the browser viewport. Scrolling offsets are not included in this value.

domEvent

domEvent: UIEvent

The raw dom event generated by the browser.

inputType

inputType: string

The input modality type. Either 'mouse' or 'touch'.

modifier

modifier: ModifierType

The modifier. One of the constants from ModifierType. A modifier indicates the combination of the modifier keys pressed during the GestureEvent. The modifier keys are Alt, Ctrl and Shift.

pagePosition

pagePosition: number[]

An array containing the (x,y) position of the event in page coordinates. 0,0 is the upper left corner of the currently visible page area in the window. Unlike clientPosition, scrolling offsets are included in this value.

type

The event type. One of the constants from GestureEventType.

viewPoint

viewPoint: Point

A Point containing the (x,y) position of the event relative to the map (in pixels). 0,0 is the upper left corner of the map.The reference of this point is null.

Note that this property contains the same coordinates as viewPosition. The key difference is that this property is a Point while viewPosition is an Array. Because this is a Point, you can directly pass its values to transformations such as map.mapToViewTransformation.

viewPosition

viewPosition: number[]

An array containing the (x,y) position of the event relative to the map. 0,0 is the upper left corner of the map

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method