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 DragRotateHandler
Constructors
constructor
-
new DragRotateHandler(
options: DragRotateHandlerOptions,
mouseRotate: MouseRotateHandler,
mousePitch: MousePitchHandler,
mouseRoll: MouseRollHandler,
): DragRotateHandlerParameters
- options: DragRotateHandlerOptions
- mouseRotate: MouseRotateHandler
- mousePitch: MousePitchHandler
- mouseRoll: MouseRollHandler
Returns DragRotateHandler
Methods
disable
enable
isActive
-
Returns a Boolean indicating whether the "drag to rotate" interaction is active, i.e. currently being used.
Returns boolean
trueif the "drag to rotate" interaction is active.
isEnabled
-
Returns a Boolean indicating whether the "drag to rotate" interaction is enabled.
Returns boolean
trueif the "drag to rotate" interaction is enabled.
The
DragRotateHandlerallows the user to rotate the map by clicking and dragging the cursor while holding the right mouse button orctrlkey.