Stay organized with collections
Save and categorize content based on your preferences.
GMSPanoramaCamera
@interfaceGMSPanoramaCamera:NSObject
GMSPanoramaCamera is used to control the viewing direction of a GMSPanoramaView. It does not
contain information about which particular panorama should be displayed.
The field of view (FOV) encompassed by the larger dimension (width or height) of the view in
degrees at zoom 1. This is clamped to the range [1, 160] degrees, and has a default value of 90.
Lower FOV values produce a zooming in effect; larger FOV values produce an fisheye effect.
Note: This is not the displayed FOV if zoom is anything other than 1. User zoom gestures
control the zoom property, not this property.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-15 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPanoramaCamera\u003c/code\u003e controls the viewing direction (orientation, zoom, field of view) within a \u003ccode\u003eGMSPanoramaView\u003c/code\u003e, but not the panorama itself.\u003c/p\u003e\n"],["\u003cp\u003eIt offers various constructors for initialization with different combinations of orientation, heading, pitch, zoom, and field of view.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFOV\u003c/code\u003e property, clamped to 1-160 degrees, sets the field of view at zoom 1, impacting the visual effect (zoom in or fisheye).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ezoom\u003c/code\u003e property, clamped to 1-5, adjusts the visible region, with higher values zooming in on the central area.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eorientation\u003c/code\u003e property combines heading and pitch, determining the camera's direction.\u003c/p\u003e\n"]]],["`GMSPanoramaCamera` controls the viewing direction of a `GMSPanoramaView`. It is configured using properties such as `orientation`, `zoom`, and `FOV`. The `initWithOrientation:zoom:FOV:` initializer sets these properties, with values clamped to acceptable ranges. Convenience constructors, like `cameraWithHeading:pitch:zoom:` or `cameraWithOrientation:zoom:FOV:`, allow setting camera properties, including heading, pitch, and FOV which has a range between 1 and 160, and the zoom which is between 1 and 5.\n"],null,["GMSPanoramaCamera \n\n @interface GMSPanoramaCamera : NSObject\n\n`GMSPanoramaCamera` is used to control the viewing direction of a [GMSPanoramaView](../Classes/GMSPanoramaView.html). It does not\ncontain information about which particular panorama should be displayed.\n- `\n ``\n ``\n `\n\n [-initWithOrientation:zoom:FOV:](#/c:objc(cs)GMSPanoramaCamera(im)initWithOrientation:zoom:FOV:)`\n ` \n Designated initializer. Configures this `GMSPanoramaCamera` with [orientation](../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)orientation), [zoom](../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)zoom) and [FOV](../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)FOV).\n These values will be clamped to acceptable ranges. \n\n Declaration \n Swift \n\n init(orientation: ../Structs/GMSOrientation.html, zoom: Float, fov ../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)FOV: Double)\n\n Objective-C \n\n - (nonnull id)initWithOrientation:(../Structs/GMSOrientation.html)orientation\n zoom:(float)zoom\n FOV:(double)FOV;\n\n- `\n ``\n ``\n `\n\n [+cameraWithOrientation:zoom:](#/c:objc(cs)GMSPanoramaCamera(cm)cameraWithOrientation:zoom:)`\n ` \n Convenience constructor specifying heading and pitch as part of [orientation](../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)orientation), plus [zoom](../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)zoom) and\n default field of view (90 degrees). \n\n Declaration \n Swift \n\n convenience init(orientation: ../Structs/GMSOrientation.html, zoom: Float)\n\n Objective-C \n\n + (nonnull instancetype)cameraWithOrientation:(../Structs/GMSOrientation.html)orientation\n zoom:(float)zoom;\n\n- `\n ``\n ``\n `\n\n [+cameraWithHeading:pitch:zoom:](#/c:objc(cs)GMSPanoramaCamera(cm)cameraWithHeading:pitch:zoom:)`\n ` \n Convenience constructor specifying `heading`, `pitch`, [zoom](../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)zoom) with default field of view (90\n degrees). \n\n Declaration \n Swift \n\n convenience init(heading: CLLocationDirection, pitch: Double, zoom: Float)\n\n Objective-C \n\n + (nonnull instancetype)cameraWithHeading:(CLLocationDirection)heading\n pitch:(double)pitch\n zoom:(float)zoom;\n\n- `\n ``\n ``\n `\n\n [+cameraWithOrientation:zoom:FOV:](#/c:objc(cs)GMSPanoramaCamera(cm)cameraWithOrientation:zoom:FOV:)`\n ` \n Convenience constructor for `GMSPanoramaCamera`, specifying all camera properties with heading\n and pitch as part of [orientation](../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)orientation). \n\n Declaration \n Objective-C \n\n + (nonnull instancetype)cameraWithOrientation:(../Structs/GMSOrientation.html)orientation\n zoom:(float)zoom\n FOV:(double)FOV;\n\n- `\n ``\n ``\n `\n\n [+cameraWithHeading:pitch:zoom:FOV:](#/c:objc(cs)GMSPanoramaCamera(cm)cameraWithHeading:pitch:zoom:FOV:)`\n ` \n Convenience constructor for `GMSPanoramaCamera`, specifying all camera properties. \n\n Declaration \n Swift \n\n convenience init(heading: CLLocationDirection, pitch: Double, zoom: Float, fov ../Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)FOV: Double)\n\n Objective-C \n\n + (nonnull instancetype)cameraWithHeading:(CLLocationDirection)heading\n pitch:(double)pitch\n zoom:(float)zoom\n FOV:(double)FOV;\n\n- `\n ``\n ``\n `\n\n [FOV](#/c:objc(cs)GMSPanoramaCamera(py)FOV)`\n ` \n The field of view (FOV) encompassed by the larger dimension (width or height) of the view in\n degrees at zoom 1. This is clamped to the range \\[1, 160\\] degrees, and has a default value of 90.\n\n Lower FOV values produce a zooming in effect; larger FOV values produce an fisheye effect.\n\n Note: This is not the displayed FOV if zoom is anything other than 1. User zoom gestures\n control the zoom property, not this property. \n\n Declaration \n Swift \n\n var fov: Double { get }\n\n Objective-C \n\n @property (nonatomic, readonly) double FOV;\n\n- `\n ``\n ``\n `\n\n [zoom](#/c:objc(cs)GMSPanoramaCamera(py)zoom)`\n ` \n Adjusts the visible region of the screen. A zoom of N will show the same area as the central\n width/N height/N area of what is shown at zoom 1.\n\n Zoom is clamped to the implementation defined range \\[1, 5\\]. \n\n Declaration \n Swift \n\n var zoom: Float { get }\n\n Objective-C \n\n @property (nonatomic, readonly) float zoom;\n\n- `\n ``\n ``\n `\n\n [orientation](#/c:objc(cs)GMSPanoramaCamera(py)orientation)`\n ` \n The camera orientation, which groups together heading and pitch. \n\n Declaration \n Swift \n\n var orientation: ../Structs/GMSOrientation.html { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Structs/GMSOrientation.html orientation;"]]