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. |
| map | The |
| original |
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. |
| prevent |
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
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
Position[]
preventDefault
Prevents event propagation bubbling up the event chain.
preventDefault: () => void
Property Value
() => void
shapes
type
The event type.
type: string
Property Value
string