Maps SDK for Web

tt.DragPanHandler

The DragPanHandler allows the user to pan the map by clicking and dragging the cursor.

Methods

disable( )

Disables the 'drag to pan' interaction.

enable( )

Enables the 'drag to pan' interaction.

Example
map.dragPan.enable();

isActive( ): Boolean

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

Returns

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

isEnabled( ): Boolean

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

Returns

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