For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class TouchPanHandler
Implements
Index
Constructors
Methods
Constructors
constructor
Parameters
- options: { clickTolerance: number }
- map: MapMLGL
Returns TouchPanHandler
Methods
disable
Returns void
enable
Returns void
isActive
This is used to indicate if the handler is currently active or not. In case a handler is active, it will block other handlers from getting the relevant events. There is an allow list of handlers that can be active at the same time, which is configured when adding a handler.
Returns boolean
isEnabled
Returns boolean
reset
resetcan be called by the manager at any time and must reset everything to it's original stateReturns void
touchcancel
Returns void
touchend
Parameters
- e: TouchEvent
- points: Point[]
- mapTouches: Touch[]
Returns void
touchmove
- touchmove(
e: TouchEvent,
points: Point[],
mapTouches: Touch[],
): void | { around: Point; panDelta: Point }Parameters
- e: TouchEvent
- points: Point[]
- mapTouches: Touch[]
Returns void | { around: Point; panDelta: Point }
touchstart
- touchstart(
e: TouchEvent,
points: Point[],
mapTouches: Touch[],
): void | { around: Point; panDelta: Point }Parameters
- e: TouchEvent
- points: Point[]
- mapTouches: Touch[]
Returns void | { around: Point; panDelta: Point }
A
TouchPanHandlerallows the user to pan the map using touch gestures.