Maps SDK for Web
tt.MapTouchEvent
MapTouchEvent is the event type for touch-related map events.
Properties
defaultPrevented: Boolean
true if preventDefault has been called.
lngLat: Maps.LngLat
The geographic location on the map of the mouse cursor.
lngLats: Maps.LngLat
The array of pixel coordinates corresponding to a touch event's touches property.
originalEvent: Unknown
The DOM event which caused the map event.
point: Maps.Point
The pixel coordinates of the mouse cursor, relative to the map and measured from the top-left corner.
points: Array
The array of pixel coordinates corresponding to a touch event's touches property.
target: Maps.Map
The Map object that fired the event.
type: String
The event type.
Methods
preventDefault( )
Prevents subsequent default processing of the event by the map. Calling this method will prevent the following default map behaviors:
- On touchstart events: the behavior of DragPanHandler.
- On touchstart events: the behavior of TouchZoomRotateHandler.