lookAtDistanceWithEasing method - MapCameraKeyframeTrack class - mapview library - Dart API
lookAtDistanceWithEasing static method
- @Deprecated("Will be removed in v4.27.0. Use [MapCameraKeyframeTrack.lookAtDistanceWithKind] instead.")
- List<
ScalarKeyframe> keyframes, - Easing easing,
- KeyframeInterpolationMode interpolationMode
Creates a map camera look-at distance keyframe track.
It enables animations of the distance from the map camera to the target point that the camera looks at in meters. The values will be clamped according to the minimum and maximum zoom levels set for the map camera.
-
keyframesThe list of keyframes that specify how the camera property is changed. 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. -
easingThe easing to apply during keyframe interpolation. -
interpolationModeThe type of interpolation done between keyframe values.
Returns MapCameraKeyframeTrack. A keyframe track over the distance from the map camera to its target.
Throws MapCameraKeyframeTrackInstantiationException. Indicates an instantiation issue.
Implementation
@Deprecated("Will be removed in v4.27.0. Use [MapCameraKeyframeTrack.lookAtDistanceWithKind] instead.")
static MapCameraKeyframeTrack lookAtDistanceWithEasing(List<ScalarKeyframe> keyframes, Easing easing, KeyframeInterpolationMode interpolationMode) => $prototype.lookAtDistanceWithEasing(keyframes, easing, interpolationMode);