normalizedPrincipalPointWithEasing static method

MapCameraKeyframeTrack normalizedPrincipalPointWithEasing(
  1. List<Anchor2DKeyframe> keyframes,
  2. Easing easing,
  3. KeyframeInterpolationMode interpolationMode
)

Creates a map camera principal point keyframe track.

It enables animations on the point where the map camera's target is placed in normalized view coordinates. (0,0) is top left of the viewport, (1, 1) is bottom right.

  • keyframes The list of keyframes that specify how the camera property is changed. Point values must be in normalized screen coordinates with origin (0,0) in the top left and (1,1) in the bottom right of the viewport. Point values outside of viewport boundaries will be clamped to the viewport boundaries during animation. Keyframe time offsets are considered to be relative to the previous keyframe in the list or relative to the start of the animation if the current keyframe is first in the list. Time offset of the first keyframe in the list should be 0, otherwise an error occurs and creation of the keyframe track will fail.

  • easing The easing to apply during keyframe interpolation.

  • interpolationMode The type of interpolation done between keyframe values.

Returns MapCameraKeyframeTrack. A keyframe track over the principal point.

Throws MapCameraKeyframeTrackInstantiationException. Indicates an instantiation issue.

Implementation

static MapCameraKeyframeTrack normalizedPrincipalPointWithEasing(List<Anchor2DKeyframe> keyframes, Easing easing, KeyframeInterpolationMode interpolationMode) => $prototype.normalizedPrincipalPointWithEasing(keyframes, easing, interpolationMode);