MapMarkerAnimation constructor

MapMarkerAnimation(
  1. MapItemKeyFrameTrack track
)

Creates an animation of MapMarker based on provided keyframe track.

Supports tracks created with MapItemKeyFrameTrack 'moveTo*' methods.

For starting the animation see MapMarker.startAnimation.

  • track The track holding the keyframes for the animation.

Throws MapMarkerAnimationInstantiationException. If the specified keyframe track cannot be used to create animation of a MapMarker.

Implementation

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