GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSPanoramaLayer
GMSPanoramaLayer
is a custom subclass of CALayer, provided as the layer class on
GMSPanoramaView
. This layer should not be instantiated directly.
-
Declaration
Swift
var cameraHeading: CLLocationDirection { get set }
Objective-C
@property(nonatomic) CLLocationDirection cameraHeading
-
Declaration
Swift
var cameraPitch: Double { get set }
Objective-C
@property(nonatomic) double cameraPitch
-
Declaration
Swift
var cameraZoom: Float { get set }
Objective-C
@property(nonatomic) float cameraZoom
-
Declaration
Swift
var cameraFOV: Double { get set }
Objective-C
@property(nonatomic) double cameraFOV
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPanoramaLayer\u003c/code\u003e is a custom subclass of \u003ccode\u003eCALayer\u003c/code\u003e used as the layer class for \u003ccode\u003eGMSPanoramaView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt is not intended to be instantiated directly but is accessed through \u003ccode\u003eGMSPanoramaView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis layer provides properties like \u003ccode\u003ecameraHeading\u003c/code\u003e, \u003ccode\u003ecameraPitch\u003c/code\u003e, \u003ccode\u003ecameraZoom\u003c/code\u003e, and \u003ccode\u003ecameraFOV\u003c/code\u003e to control the viewpoint of the panorama.\u003c/p\u003e\n"],["\u003cp\u003eThese properties allow developers to adjust the direction, angle, zoom level, and field of view of the displayed panorama.\u003c/p\u003e\n"],["\u003cp\u003eBy manipulating these properties, developers can customize the user's perspective within the panoramic scene.\u003c/p\u003e\n"]]],["`GMSPanoramaLayer` is a subclass of CALayer, used as the layer class on `GMSPanoramaView`. It should not be created directly. Key actions involve setting properties: `cameraHeading` (a `CLLocationDirection`), `cameraPitch` (a `Double`), `cameraZoom` (a `Float`), and `cameraFOV` (a `Double`). These properties are available for both Swift and Objective-C, allowing adjustment of the panorama's view.\n"],null,["# GoogleNavigation Framework Reference\n\nGMSPanoramaLayer\n================\n\n @interface GMSPanoramaLayer : ../Classes/GMSCALayer.html\n\n`GMSPanoramaLayer` is a custom subclass of CALayer, provided as the layer class on\n[GMSPanoramaView](../Classes/GMSPanoramaView.html). This layer should not be instantiated directly.\n- `\n ``\n ``\n `\n\n ### [cameraHeading](#/c:objc(cs)GMSPanoramaLayer(py)cameraHeading)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n var cameraHeading: CLLocationDirection { get set }\n\n Objective-C \n\n @property(nonatomic) CLLocationDirection cameraHeading\n\n- `\n ``\n ``\n `\n\n ### [cameraPitch](#/c:objc(cs)GMSPanoramaLayer(py)cameraPitch)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n var cameraPitch: Double { get set }\n\n Objective-C \n\n @property(nonatomic) double cameraPitch\n\n- `\n ``\n ``\n `\n\n ### [cameraZoom](#/c:objc(cs)GMSPanoramaLayer(py)cameraZoom)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n var cameraZoom: Float { get set }\n\n Objective-C \n\n @property(nonatomic) float cameraZoom\n\n- `\n ``\n ``\n `\n\n ### [cameraFOV](#/c:objc(cs)GMSPanoramaLayer(py)cameraFOV)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n var cameraFOV: Double { get set }\n\n Objective-C \n\n @property(nonatomic) double cameraFOV"]]