Type Definitions
-
olx.animation.BounceOptions{Object} experimental
-
Properties:
Name Type Argument Description resolutionnumber The resolution to start the bounce from, typically
map.getView().getResolution(). Required.startnumber | undefined <optional>
The start time of the animation. Default is immediately.
durationnumber | undefined <optional>
The duration of the animation in milliseconds. Default is
1000.easingfunction The easing function to use. Can be an
ol.easingor a custom function. Default isol.easing.upAndDown. Required. -
olx.animation.PanOptions{Object} experimental
-
Properties:
Name Type Argument Description sourceol.Coordinate The location to start panning from, typically
map.getView().getCenter(). Required.startnumber | undefined <optional>
The start time of the animation. Default is immediately.
durationnumber | undefined <optional>
The duration of the animation in milliseconds. Default is
1000.easingfunction The easing function to use. Can be an
ol.easingor a custom function. Default isol.easing.inAndOut. Required. -
olx.animation.RotateOptions{Object} experimental
-
Properties:
Name Type Argument Description rotationnumber | undefined <optional>
The rotation value (in radians) to begin rotating from, typically
map.getView().getRotation(). Ifundefinedthen0is assumed.anchorol.Coordinate | undefined <optional>
The rotation center/anchor. The map rotates around the center of the view if unspecified.
startnumber | undefined <optional>
The start time of the animation. Default is immediately.
durationnumber | undefined <optional>
The duration of the animation in milliseconds. Default is
1000.easingfunction The easing function to use. Can be an
ol.easingor a custom function. Default isol.easing.inAndOut. Required. -
olx.animation.ZoomOptions{Object} experimental
-
Properties:
Name Type Argument Description resolutionnumber number The resolution to begin zooming from, typically
map.getView().getResolution(). Required.startnumber | undefined <optional>
The start time of the animation. Default is immediately.
durationnumber | undefined <optional>
The duration of the animation in milliseconds. Default is
1000.easingfunction The easing function to use. Can be an
ol.easingor a custom function. Default isol.easing.inAndOut. Required.
OpenLayers 3