Classes
Type Definitions
- 
    
Mode{'trackpad'} {'wheel'}
 - 
 - 
    
Options{Object}
 - 
Properties:
Name Type Argument Default Description conditionCondition <optional> 
A function that takes an
MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default isalways.onFocusOnlyboolean <optional> 
false When the map's target has a
tabindexattribute set, the interaction will only handle events when the map has the focus.maxDeltanumber <optional> 
1 Maximum mouse wheel delta.
durationnumber <optional> 
250 Animation duration in milliseconds.
timeoutnumber <optional> 
80 Mouse wheel timeout duration in milliseconds.
useAnchorboolean <optional> 
true Enable zooming using the mouse's location as the anchor. When set to
false, zooming in and out will zoom to the center of the screen instead of zooming on the mouse's location.constrainResolutionboolean <optional> 
false If true, the mouse wheel zoom event will always animate to the closest zoom level after an interaction; false means intermediary zoom levels are allowed.