Class CooperativeGesturesHandlerMaptiler
Hierarchy (View Summary)
- CooperativeGesturesHandler
- CooperativeGesturesHandler
Index
Constructors
Methods
Constructors
Maptilerconstructor
- new CooperativeGesturesHandler(
map: MapLibreMap | Map,
options: boolean,
): CooperativeGesturesHandlerParameters
- map: MapLibreMap | Map
- options: boolean
Returns CooperativeGesturesHandler
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
isBypassed
Parameters
- event: MouseEvent | WheelEvent | PointerEvent
Returns boolean
isEnabled
Returns boolean
notifyGestureBlocked
Parameters
- gestureType: "wheel_zoom" | "touch_pan"
- originalEvent: Event
Returns void
reset
resetcan be called by the manager at any time and must reset everything to it's original stateReturns void
Was this helpful?
A
CooperativeGestureHandleris a control that adds cooperative gesture info when user tries to zoom in/out.When the CooperativeGestureHandler blocks a gesture, it will emit a
cooperativegesturepreventedevent.Example
See
Example: cooperative gestures