The DragRotateHandler allows the user to rotate the map by clicking and dragging the cursor while holding the right mouse button or ctrl key.
DragRotateHandler
ctrl
Disables the "drag to rotate" interaction.
map.dragRotate.disable(); Copy
map.dragRotate.disable();
Enables the "drag to rotate" interaction.
map.dragRotate.enable(); Copy
map.dragRotate.enable();
Returns a Boolean indicating whether the "drag to rotate" interaction is active, i.e. currently being used.
true if the "drag to rotate" interaction is active.
true
Returns a Boolean indicating whether the "drag to rotate" interaction is enabled.
true if the "drag to rotate" interaction is enabled.
The
DragRotateHandler
allows the user to rotate the map by clicking and dragging the cursor while holding the right mouse button orctrl
key.