New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see
New map style for Google Maps Platform.
GoogleMaps Framework Reference
GMSPanoramaCameraUpdate
@interface GMSPanoramaCameraUpdate : NSObject
GMSPanoramaCameraUpdate
represents an update that may be applied to a GMSPanoramaView
.
It encapsulates some logic for modifying the current camera.
It should only be constructed using the factory helper methods below.
-
Returns an update that increments the camera heading with deltaHeading
.
Declaration
Swift
class func rotate(by deltaHeading: CGFloat) -> GMSPanoramaCameraUpdate
Objective-C
+ (nonnull GMSPanoramaCameraUpdate *)rotateBy:(CGFloat)deltaHeading;
-
Returns an update that sets the camera heading to the given value.
Declaration
Swift
class func setHeading(_ heading: CGFloat) -> GMSPanoramaCameraUpdate
Objective-C
+ (nonnull GMSPanoramaCameraUpdate *)setHeading:(CGFloat)heading;
-
Returns an update that sets the camera pitch to the given value.
Declaration
Swift
class func setPitch(_ pitch: CGFloat) -> GMSPanoramaCameraUpdate
Objective-C
+ (nonnull GMSPanoramaCameraUpdate *)setPitch:(CGFloat)pitch;
-
Returns an update that sets the camera zoom to the given value.
Declaration
Swift
class func setZoom(_ zoom: CGFloat) -> GMSPanoramaCameraUpdate
Objective-C
+ (nonnull GMSPanoramaCameraUpdate *)setZoom:(CGFloat)zoom;
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 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["`GMSPanoramaCameraUpdate` objects are used to modify the camera view within a `GMSPanoramaView`."],["These updates control properties like heading, pitch, and zoom of the camera."],["Factory methods are provided to create specific camera updates, such as rotating, setting heading, pitch, or zoom."],["`GMSPanoramaCameraUpdate` simplifies adjusting the viewpoint within a panoramic scene."]]],["`GMSPanoramaCameraUpdate` modifies a `GMSPanoramaView` camera using factory methods. It provides four update actions: `rotateBy:` increments the camera heading by a specified amount. `setHeading:` directly sets the camera's heading. `setPitch:` sets the camera's pitch. `setZoom:` adjusts the camera's zoom level. These methods return a `GMSPanoramaCameraUpdate` object to apply to the panorama view. Each of these can be implemented in Swift and Objective-C.\n"]]