createAnimationFromKeyframeTracks method - MapCameraAnimationFactory class - mapview library - Dart API
createAnimationFromKeyframeTracks static method
- List<
MapCameraKeyframeTrack> tracks
Creates a MapCameraAnimation for a movement defined by the supplied list of MapCameraAnimationFactory.createAnimationFromKeyframeTracks.tracks.
Keyframe tracks specify how the map camera properties change during the animation. For the animation to be possible, no two different tracks can affect the same map camera property. The input tracks are validated with that in mind.
However, the following cases can only be detected at the time when animation is started:
-
Changing altitude of camera position also changes camera look-at distance and at high altitudes, also camera look-at orientation.
-
Changing tilt of camera orientation also changes camera look-at distance and camera look-at target.
-
Changing bearing of camera orientation also changes camera look-at target if current tilt is not 0.
-
Changing tilt or bearing of camera look-at orientation also changes camera position.
-
Changing camera look-at orientation also changes camera look-at distance if tilt is not 0.
-
tracksThe list of tracks
Returns MapCameraAnimation. MapCameraAnimation instance
Throws MapCameraAnimationInstantiationException. Indicates an instantiation issue.
Implementation
static MapCameraAnimation createAnimationFromKeyframeTracks(List<MapCameraKeyframeTrack> tracks) => $prototype.createAnimationFromKeyframeTracks(tracks);