Stay organized with collections
Save and categorize content based on your preferences.
GMSPanoramaCameraUpdate
@interfaceGMSPanoramaCameraUpdate: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.
[[["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\u003eGMSPanoramaCameraUpdate\u003c/code\u003e objects are used to modify the camera view within a \u003ccode\u003eGMSPanoramaView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese updates control properties like heading, pitch, and zoom of the camera.\u003c/p\u003e\n"],["\u003cp\u003eFactory methods are provided to create specific camera updates, such as rotating, setting heading, pitch, or zoom.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGMSPanoramaCameraUpdate\u003c/code\u003e simplifies adjusting the viewpoint within a panoramic scene.\u003c/p\u003e\n"]]],["`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"],null,["GMSPanoramaCameraUpdate \n\n @interface GMSPanoramaCameraUpdate : NSObject\n\n`GMSPanoramaCameraUpdate` represents an update that may be applied to a [GMSPanoramaView](../Classes/GMSPanoramaView.html).\nIt encapsulates some logic for modifying the current camera.\nIt should only be constructed using the factory helper methods below.\n- `\n ``\n ``\n `\n\n [+rotateBy:](#/c:objc(cs)GMSPanoramaCameraUpdate(cm)rotateBy:)`\n ` \n Returns an update that increments the camera heading with `deltaHeading`. \n\n Declaration \n Swift \n\n class func rotate(by deltaHeading: CGFloat) -\u003e GMSPanoramaCameraUpdate\n\n Objective-C \n\n + (nonnull GMSPanoramaCameraUpdate *)rotateBy:(CGFloat)deltaHeading;\n\n- `\n ``\n ``\n `\n\n [+setHeading:](#/c:objc(cs)GMSPanoramaCameraUpdate(cm)setHeading:)`\n ` \n Returns an update that sets the camera heading to the given value. \n\n Declaration \n Swift \n\n class func setHeading(_ heading: CGFloat) -\u003e GMSPanoramaCameraUpdate\n\n Objective-C \n\n + (nonnull GMSPanoramaCameraUpdate *)setHeading:(CGFloat)heading;\n\n- `\n ``\n ``\n `\n\n [+setPitch:](#/c:objc(cs)GMSPanoramaCameraUpdate(cm)setPitch:)`\n ` \n Returns an update that sets the camera pitch to the given value. \n\n Declaration \n Swift \n\n class func setPitch(_ pitch: CGFloat) -\u003e GMSPanoramaCameraUpdate\n\n Objective-C \n\n + (nonnull GMSPanoramaCameraUpdate *)setPitch:(CGFloat)pitch;\n\n- `\n ``\n ``\n `\n\n [+setZoom:](#/c:objc(cs)GMSPanoramaCameraUpdate(cm)setZoom:)`\n ` \n Returns an update that sets the camera zoom to the given value. \n\n Declaration \n Swift \n\n class func setZoom(_ zoom: CGFloat) -\u003e GMSPanoramaCameraUpdate\n\n Objective-C \n\n + (nonnull GMSPanoramaCameraUpdate *)setZoom:(CGFloat)zoom;"]]