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.

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.

shapes

The shapes of all touch points on the map.

Inherited Properties

map

The Map instance in which the event occurred on.

originalEvent

The original event that was fired.

preventDefault

Prevents event propagation bubbling up the event chain.

type

The event type.

Property Details

layerId

The id of the layer the event is attached to.

layerId?: string

Property Value

string

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

shapes

The shapes of all touch points on the map.

shapes?: Shape[]

Property Value

Shape[]

Inherited Property Details

map

The Map instance in which the event occurred on.

map: Map

Property Value

Map

Inherited From MapEvent.map

originalEvent

The original event that was fired.

originalEvent?: Event

Property Value

Event

Inherited From MapEvent.originalEvent

preventDefault

Prevents event propagation bubbling up the event chain.

preventDefault: () => void

Property Value

() => void

Inherited From MapMouseWheelEvent.preventDefault

type

The event type.

type: string

Property Value

string

Inherited From MapEvent.type