Class: featureAnimation

ol. featureAnimation

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


new featureAnimation(options)

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 ol.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 not 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
  • event:animating
  • event:animationend

Classes

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

Members


<static> hiddenStyle

Hidden style: a transparent style

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