TTCameraBoundingBoxBuilder
Objective-C
@interface TTCameraBoundingBoxBuilder : NSObject
Swift
class TTCameraBoundingBoxBuilder : NSObject
TTCameraUpdateBuilder is a class that that describes all camera position parameters, such as location, zoom level, pitch angle and bearing.
-
Declaration
Objective-C
+ (TTCameraBoundingBoxBuilder *_Nonnull)createWithBoundingBox:(id)boundingBox;Swift
class func create(withBoundingBox boundingBox: Any!) -> TTCameraBoundingBoxBuilderParameters
boundingBoxThe rectangle area, defined by coordinates for the top left and bottom right.
Return Value
TTCameraBoundingBoxBuilder
-
Declaration
Objective-C
- (TTCameraBoundingBoxBuilder *_Nonnull)withAnimationDuration: (int)animationDuration;Swift
func withAnimationDuration(_ animationDuration: Int32) -> TTCameraBoundingBoxBuilderParameters
animationDurationAnimation 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
TTCameraBoundingBoxBuilder
-
Declaration
Objective-C
- (TTCameraBoundingBoxBuilder *_Nonnull)withBearing:(double)bearing;Swift
func withBearing(_ bearing: Double) -> TTCameraBoundingBoxBuilderParameters
bearingRotation angle, in degrees clockwise from north.
Return Value
TTCameraBoundingBoxBuilder
-
Declaration
Objective-C
- (TTCameraBoundingBoxBuilder *_Nonnull)withPitch:(double)pitch;Swift
func withPitch(_ pitch: Double) -> TTCameraBoundingBoxBuilderParameters
pitchThe tilt angle, in degrees.
Return Value
TTCameraBoundingBoxBuilder
-
Declaration
Objective-C
- (TTCameraBoundingBox *_Nonnull)build;Swift
func build() -> TTCameraBoundingBoxReturn Value
TTCameraBoundingBox
TTCameraBoundingBoxBuilder Class Reference