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 DragPanHandler
Constructors
constructor
-
new DragPanHandler(
el: HTMLElement,
mousePan: MousePanHandler,
touchPan: TouchPanHandler,
): DragPanHandlerParameters
- el: HTMLElement
- mousePan: MousePanHandler
- touchPan: TouchPanHandler
Returns DragPanHandler
Methods
disable
enable
-
Enables the "drag to pan" interaction.
Parameters
Optionaloptions: boolean | DragPanOptionsOptions object
Returns void
isActive
-
Returns a Boolean indicating whether the "drag to pan" interaction is active, i.e. currently being used.
Returns boolean
trueif the "drag to pan" interaction is active.
isEnabled
-
Returns a Boolean indicating whether the "drag to pan" interaction is enabled.
Returns boolean
trueif the "drag to pan" interaction is enabled.
The
DragPanHandlerallows the user to pan the map by clicking and dragging the cursor.