MapPolylineAnimation constructor

MapPolylineAnimation(
  1. MapItemKeyFrameTrack track
)

Creates an animation of MapPolyline based on provided keyframe track.

Supports tracks created with MapItemKeyFrameTrack 'polylineProgress*' methods. For starting the animation, see MapPolyline.startAnimation.

  • track The track holding the keyframes for the animation.

Throws MapPolylineAnimationInstantiationException. If the specified keyframe track cannot be used to create animation of a MapPolyline.

Implementation

factory MapPolylineAnimation(MapItemKeyFrameTrack track) => $prototype.$init(track);