animate Camera
Animates the movement of the camera from the current position to the position defined in the update.
Since
1.19
VMECameraUpdate lUpdate = new VMECameraUpdateBuilder()
.setTargets(Arrays.asList("outside"))
.setHeading(VMECameraHeading.newHeading(60.0f))
.setViewMode(VMEViewMode.GLOBAL)
.setPitch(VMECameraPitch.newPitch(-30))
.setDistanceRange(VMECameraDistanceRange.newRadiusRange(10,100))
.build();
mMapController.animateCamera(lUpdate);
Content copied to clipboard
See also
for the available update constructors.
Parameters
update
The update to apply.
fun animateCamera(update: VMECameraUpdate, duration: Float, callback: VMEAnimationCallback?)
Content copied to clipboard
Animates the movement of the camera from the current position to the position defined in the update.
Since
1.19
VMECameraUpdate lUpdate = new VMECameraUpdateBuilder()
.setTargets(Arrays.asList("outside"))
.setHeading(VMECameraHeading.newHeading(60.0f))
.setViewMode(VMEViewMode.GLOBAL)
.setPitch(VMECameraPitch.newPitch(-30))
.setDistanceRange(VMECameraDistanceRange.newRadiusRange(10,100))
.build();
mMapController.animateCamera(lUpdate, 1.0f, this);
Content copied to clipboard
See also
for the available update constructors.
Parameters
update
The update to apply.
duration
The duration (in seconds) of the camera animation.
callback
A callback to get notified of any animation events. Can pass null if indifferent to animation events.