moveToWithEasing static method

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

Creates a map item position keyframe track.

It enables animations over the geographical coordinates where the map item is positioned.

  • keyframes The list of keyframes that specify how the map item position 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 moveToWithEasing(List<GeoCoordinatesKeyframe> keyframes, Easing easing, KeyframeInterpolationMode interpolationMode) => $prototype.moveToWithEasing(keyframes, easing, interpolationMode);