MapMarkerAnimation constructor

MapMarkerAnimation(
  1. MapItemKeyFrameTrack track
)

Creates an animation of MapMarker based on provided keyframe track.

Supports tracks created with MapItemKeyFrameTrack 'moveTo', 'scale' and 'opacity' methods.

For starting the animation see MapMarker.startAnimation or MapMarker3D.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 marker.

Implementation

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