Class DragPanHandler
Index
Constructors
Methods
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.
Was this helpful?
The
DragPanHandlerallows the user to pan the map by clicking and dragging the cursor.