Classes
Members
-
module:ol/interaction/MouseWheelZoom.Mode{string}
-
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description conditionmodule:ol/events/condition~Condition <optional>
A function that takes an
module:ol/MapBrowserEvent~MapBrowserEventand returns a boolean to indicate whether that event should be handled. Default ismodule:ol/events/condition~always. In addition, if there is atabindexattribute on the map element,module:ol/events/condition~focuswill also be applied.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.
OpenLayers