Maps SDK for Web

tt.ScrollZoomHandler

The ScrollZoomHandler allows the user to zoom the map by scrolling.

Methods

disable( )

Disables the 'scroll to zoom' interaction.

enable([options])

Enables the 'scroll to zoom' interaction.

Example
map.scrollZoom.enable();
map.scrollZoom.enable({ around: 'center' });
Parameters
Name Description
options
Object
default:None
Object with options
options.around
String
default:None
If 'center' is passed, map will zoom around center of map

isEnabled( ): Boolean

Returns a Boolean indicating whether the 'scroll to zoom' interaction is enabled.

Returns

true if the 'scroll to zoom' interaction is enabled.