Class: featureAnimation

ol. featureAnimation


new featureAnimation(options)

Feature animation base class Use the _ol_Map_#animateFeature or _ol_layer_Vector_#animateFeature to animate a feature on postcompose in a map or a layer

Parameters:
Name Type Description
options ol.featureAnimationOptions
Properties
Name Type Description
duration Number

duration of the animation in ms, default 1000

revers bool

revers the animation direction

repeat Number

number of time to repeat the animation, default 0

hiddenStyle oo.style.Style

a style to display the feature when playing the animation to be used to make the feature selectable when playing animation (@see ../examples/map.featureanimation.select.html), default the feature will be hidden when playing (and niot selectable)

fade ol.easing.Function

an easing function used to fade in the feature, default none

easing ol.easing.Function

an easing function for the animation, default ol.easing.linear

Fires:
  • (event:animationstart|animationend)

Classes

Bounce
Drop
Fade
None
Null
Path
Shake
Show
Slide
Teleport
Throw
Zoom
ZoomOut

Methods


animate(e)

Function to perform manipulations onpostcompose. This function is called with an ol.featureAnimationEvent argument. The function will be overridden by the child implementation.
Return true to keep this function for the next frame, false to remove it.

Parameters:
Name Type Description
e ol.featureAnimationEvent
Returns:

true to continue animation.

Type
bool