Maps SDK for Web
tt.BoxZoomHandler
The BoxZoomHandler allows the user to zoom the map to fit within a bounding box. The bounding box is defined by clicking and holding shift while dragging the cursor.
Methods
disable( )
Disables the 'box zoom' interaction.
enable( )
Enables the 'box zoom' interaction.
Example
map.boxZoom.enable();
isActive( ): Boolean
Returns a Boolean indicating whether the 'box zoom' interaction is active, i.e. currently being used.
Returns
true if the 'box zoom' interaction is active.
isEnabled( ): Boolean
Returns a Boolean indicating whether the 'box zoom' interaction is enabled.
Returns
true if the 'box zoom' interaction is enabled.