VisioMove Essential (Android)  1.27.6

◆ animateCamera() [2/2]

void animateCamera ( VMECameraUpdate  update,
float  duration,
VMEAnimationCallback  callback 
)

Animates the movement of the camera from the current position to the position defined in the update.

See also
VMECameraUpdate for the available update Creating map view.
Parameters
updateThe update to apply.
durationThe duration (in seconds) of the camera animation.
callbackA callback to get notified of any animation events. Can pass null if indifferent to animation events.
Version
1.19
Example
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();
mapView.animateCamera(lUpdate, 1.0f, this);
© 2022 Copyright Visioglobe, All Rights Reserved. View our Privacy Policy