new ScrollZoom( [options])
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
options |
bu.interaction.ScrollZoomOptions |
<optional> |
Options. |
- Source:
- bu/interaction/scrollzoom.js
Fires:
- ol.Object.Event#event:change:active
Extends
Members
-
parameters :Object.<string, bu.interaction.Dynamics>
-
The object that stores values for the parameters this interaction modifies. Property names of the object are the parameter names and values are objects of type
Dynamics.Type:
- Object.<string, bu.interaction.Dynamics>
- Inherited From:
- Overrides:
- Source:
- bu/interaction/axisinteraction.js
Methods
-
getActive()
-
Return whether the interaction is currently active.
- Inherited From:
- Source:
- bu/interaction/interaction.js
Returns:
trueif the interaction is active,falseotherwise.- Type
- boolean
-
getElement()
-
Return the DOM element where the events are listened to.
- Inherited From:
- Source:
- bu/interaction/interaction.js
Returns:
- Type
- Element
-
setActive(active)
-
Activate or deactivate the interaction.
Parameters:
Name Type Description activeboolean Active.
- Inherited From:
- Source:
- bu/interaction/interaction.js
Javascript API 7.x