@maplibre/maplibre-gl-directions - v0.10.1
    Preparing search index...

    Interface MapTouchEvent

    MapTouchEvent is the event type for touch-related map events.

    interface MapTouchEvent {
        _defaultPrevented: boolean;
        lngLat: LngLat;
        lngLats: LngLat[];
        originalEvent: TouchEvent;
        point: Point;
        points: Point[];
        target: Map$1;
        type: "touchstart" | "touchmove" | "touchend" | "touchcancel";
        get defaultPrevented(): boolean;
        preventDefault(): void;
    }

    Hierarchy

    • MapLibreEvent<TouchEvent>
      • MapTouchEvent
    Index
    _defaultPrevented: boolean
    lngLat: LngLat

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

    lngLats: LngLat[]

    The geographical locations on the map corresponding to a touch event's touches property.

    originalEvent: TouchEvent

    The DOM event which caused the map event.

    point: Point

    The pixel coordinates of the center of the touch event points, relative to the map and measured from the top left corner.

    points: Point[]

    The array of pixel coordinates corresponding to a touch event's touches property.

    target: Map$1

    The Map object that fired the event.

    type: "touchstart" | "touchmove" | "touchend" | "touchcancel"

    The event type.

    • get defaultPrevented(): boolean

      true if preventDefault has been called.

      Returns boolean

    • 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 TwoFingersTouchZoomRotateHandler

      Returns void