VisioMove Essential (iOS)  1.27.8

◆ animateCamera:duration:callback:

- (void) animateCamera: (VMECameraUpdate *_Nonnull)  update
duration: (float)  duration
callback: (id< VMEAnimationCallback > _Nullable)  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 Create Map View.
Parameters
updateThe update to apply.
durationThe duration (in seconds) of the camera animation.
callbackThe callback to be notified of any animation events. Can pass nil if indifferent to animation events.
Example
VMECameraUpdate* lUpdate = [VMECameraUpdate cameraUpdateWithBuilderBlock:^(VMECameraUpdateBuilder *builder) {
builder.targets = [NSArray arrayWithObject:@"B2-UL00"];
builder.heading = [VMECameraHeading cameraHeadingForPlaceID:@"B2"];
builder.distanceRange = [VMECameraDistanceRange cameraDistanceRangeMinRadius:40 andMaxRadius:200];
builder.pitch = [VMECameraPitch cameraPitchWithPitch:-30] ;
builder.viewMode = VMEViewModeFloor;
}];
[self.mapView animateCamera:lUpdate duration:1.5 listener:self];
@ VMEViewModeFloor
In floor mode, the following occurs:
Definition: VMEViewMode.h:34
VMECameraDistanceRange represents a distance element that may be associated with a VMECameraUpdate ob...
Definition: VMECameraDistanceRange.h:30
VMECameraHeading represents a heading element that may be associated with a VMECameraUpdate object.
Definition: VMECameraHeading.h:20
VMECameraPitch represents a pitch element that may be associated with a VMECameraUpdate object.
Definition: VMECameraPitch.h:21
NSArray * targets
An array of targets for the camera to focus on.
Definition: VMECameraUpdate.h:69
Used to build a VMECameraUpdate object.
Definition: VMECameraUpdateBuilder.h:21
Represents a camera update that can be applied to the VMEMapView.
Definition: VMECameraUpdate.h:29
Version
1.7
© 2022 Copyright Visioglobe, All Rights Reserved. View our Privacy Policy