TTCameraPositionBuilder
Objective-C
@interface TTCameraPositionBuilder : NSObject
Swift
class TTCameraPositionBuilder : NSObject
TTCameraPositionBuilder a class that that describes all camera position parameters, such as location, zoom level, pitch angle and bearing.
-
Declaration
Objective-C
+ (TTCameraPositionBuilder *_Nonnull)createWithCameraPosition: (CLLocationCoordinate2D)cameraPosition;
Swift
class func create(withCameraPosition cameraPosition: CLLocationCoordinate2D) -> TTCameraPositionBuilder
Parameters
cameraPosition
coordinate The map coordinate whose geographical information you want to retrieve.
Return Value
TTCameraPositionBuilder
-
Declaration
Objective-C
- (TTCameraPositionBuilder *_Nonnull)withAnimationDuration: (int)animationDuration;
Swift
func withAnimationDuration(_ animationDuration: Int32) -> TTCameraPositionBuilder
Parameters
animationDuration
Animation time (in miliseconds) for the camera update. If it is not set, the defualt animation time which is 1 second will be executed. If you do not want animation, pass 0.
Return Value
TTCameraPositionBuilder
-
Declaration
Objective-C
- (TTCameraPositionBuilder *_Nonnull)withBearing:(double)bearing;
Swift
func withBearing(_ bearing: Double) -> TTCameraPositionBuilder
Parameters
bearing
Rotation angle, in degrees clockwise from north.
Return Value
TTCameraPositionBuilder
-
Declaration
Objective-C
- (TTCameraPositionBuilder *_Nonnull)withPitch:(double)pitch;
Swift
func withPitch(_ pitch: Double) -> TTCameraPositionBuilder
Parameters
pitch
The tilt angle, in degrees.
Return Value
TTCameraPositionBuilder
-
Declaration
Objective-C
- (TTCameraPositionBuilder *_Nonnull)withZoom:(double)zoom;
Swift
func withZoom(_ zoom: Double) -> TTCameraPositionBuilder
Parameters
zoom
Camera zoom level.
Return Value
TTCameraPositionBuilder
-
Return Value
TTCameraPosition