polylineProgressWithEasing static method

MapItemKeyFrameTrack polylineProgressWithEasing(
  1. List<ScalarKeyframe> keyframes,
  2. Easing easing,
  3. KeyframeInterpolationMode interpolationMode
)

Creates a keyframe track used to animate the progress of a polyline.

Each scalar keyframe specifies the value of MapPolyline.progress at key points of the animation.

  • keyframes The list of keyframes that specify how the polyline progress changes over time.

  • easing The easing to apply during keyframe interpolation.

  • interpolationMode The type of interpolation done between keyframe values.

Returns MapItemKeyFrameTrack. MapItemKeyFrameTrack instance.

Throws MapItemKeyFrameTrackInstantiationException. If the supplied keyframe list is empty or first keyframe duration is not 0.

Implementation

static MapItemKeyFrameTrack polylineProgressWithEasing(List<ScalarKeyframe> keyframes, Easing easing, KeyframeInterpolationMode interpolationMode) => $prototype.polylineProgressWithEasing(keyframes, easing, interpolationMode);