Maps SDK for Web

tt.DragRotateHandler

The DragRotateHandler allows the user to rotate the map by clicking and dragging the cursor while holding the right mouse button or ctrl key.

Methods

disable( )

Disables the 'drag to rotate' interaction.

enable( )

Enables the 'drag to rotate' interaction.

Example
map.dragRotate.enable();

isActive( ): Boolean

Returns a Boolean indicating whether the 'drag to rotate' interaction is active, i.e. currently being used.

Returns

true if the 'drag to rotate' interaction is active.

isEnabled( ): Boolean

Returns a Boolean indicating whether the 'drag to rotate' interaction is enabled.

Returns

true if the 'drag to rotate' interaction is enabled.