GoogleMaps Framework Reference

  • GMSOrientation is a structure defining the viewing direction of a panorama camera using heading and pitch.

  • heading represents the horizontal angle in degrees, ranging from 0 to 359.9, with 0 indicating true north.

  • pitch represents the vertical angle in degrees, ranging from -90 (looking down) to 90 (looking up), relative to the horizon.

GMSOrientation

struct {}

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