animateCamera

fun animateCamera(update: VMECameraUpdate)

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);

See also

for the available update constructors.

Parameters

update

The update to apply.


fun animateCamera(update: VMECameraUpdate, duration: Float, callback: VMEAnimationCallback?)

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);

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.