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
GMSOrientation
GMSOrientation
is a tuple of heading and pitch used to control the viewing
direction of a GMSPanoramaCamera
.
-
The camera heading (horizontal angle) in degrees. Type used to represent
the direction in degrees from 0 to 359.9. True north is 0, east is 90,
south is 180, and west is 270.
Declaration
Swift
var heading: CLLocationDirection { get }
Objective-C
const CLLocationDirection heading
-
The camera pitch (vertical angle), in degrees from the horizon. The pitch
range is [-90,90], although it is possible that not the full range is
supported. A positive value looks up and a negative value looks down.
Declaration
Swift
var pitch: Double { get }
Objective-C
const double pitch
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."],[[["`GMSOrientation` is a structure that defines the viewing direction of a `GMSPanoramaCamera` using heading and pitch."],["Heading represents the horizontal angle in degrees (0-359.9) with 0 being true north."],["Pitch represents the vertical angle in degrees (-90 to 90) with positive values looking up and negative values looking down."]]],[]]