Join us for our next
Google Maps Platform Developer Community Day in San Francisco in December!
Apply now to attend.
GoogleMaps 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."],[],["`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"]]