ScrollZoomHandler class

Constructors

ScrollZoomHandler.fromJsObject(ScrollZoomHandlerJsImpl jsObject)
Creates a new ScrollZoomHandler from a jsObject.

Properties

hashCode int
The hash code for this object.
no setterinherited
jsObject → ScrollZoomHandlerJsImpl
JS object.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disable() → dynamic
Disables the "scroll to zoom" interaction.
enable([dynamic options]) → dynamic
Enables the "scroll to zoom" interaction.
isActive() bool
Active state is turned on and off with every scroll wheel event and is set back to false before the map render is called, so _active is not a good candidate for determining if a scroll zoom animation is in progress.
isEnabled() bool
Returns a Boolean indicating whether the "scroll to zoom" interaction is enabled.
isZooming() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onWheel(WheelEvent e) → dynamic
setWheelZoomRate(num wheelZoomRate) → dynamic
Set the zoom rate of a mouse wheel @param {number} wheelZoomRate = 1/450
setZoomRate(num zoomRate) → dynamic
Set the zoom rate of a trackpad @param {number} zoomRate = 1/100
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited