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