MapTouchEvent interface
Event object returned by the maps when a touch event occurs.
- Extends
Properties
layer |
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 |
original |
The original event that was fired. |
prevent |
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
Position[]
shapes
Inherited Property Details
map
The Map
instance in which the event occurred on.
map: Map
Property Value
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