MapTouchEvent interface

Event object returned by the maps when a touch event occurs.

Extends

Properties

layerId

The id of the layer the event is attached to.

map

The Map instance in which the event occurred on.

originalEvent

The original event that was fired.

pixel

The pixel coordinate at the center of the all touch points on the map, relative to the top left corner.

pixels

The array of pixel coordinates of all touch points on the map.

position

The geographic location of the center of all touch points on the map.

positions

The geographical location of all touch points on the map.

preventDefault

Prevents event propagation bubbling up the event chain.

shapes

The shapes of all touch points on the map.

type

The event type.

Property Details

layerId

The id of the layer the event is attached to.

layerId?: string

Property Value

string

map

The Map instance in which the event occurred on.

map: Map

Property Value

Map

originalEvent

The original event that was fired.

originalEvent?: Event

Property Value

Event

pixel

The pixel coordinate at the center of the all touch points on the map, relative to the top left corner.

pixel?: Pixel

Property Value

pixels

The array of pixel coordinates of all touch points on the map.

pixels?: Pixel[]

Property Value

Pixel[]

position

The geographic location of the center of all touch points on the map.

position?: Position

Property Value

positions

The geographical location of all touch points on the map.

positions?: Position[]

Property Value

preventDefault

Prevents event propagation bubbling up the event chain.

preventDefault: () => void

Property Value

() => void

shapes

The shapes of all touch points on the map.

shapes?: Shape[]

Property Value

Shape[]

type

The event type.

type: string

Property Value

string