# GoogleMaps Framework Reference

# GMSPanoramaCamera

    @interface GMSPanoramaCamera : NSObject

`GMSPanoramaCamera` is used to control the viewing direction of a `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaView.html`. It does not
contain information about which particular panorama should be displayed.
- `


  ### [-initWithOrientation:zoom:FOV:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera#/c:objc(cs)GMSPanoramaCamera(im)initWithOrientation:zoom:FOV:)


  ` Designated initializer. Configures this `GMSPanoramaCamera` with `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)orientation`, `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)zoom` and `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)FOV`.
  These values will be clamped to acceptable ranges.

  #### Declaration

  Swift

      init(orientation: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Structs/GMSOrientation.html, zoom: Float, fov https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)FOV: Double)

  Objective-C

      - (nonnull id)initWithOrientation:(https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Structs/GMSOrientation.html)orientation
                                   zoom:(float)zoom
                                    FOV:(double)FOV;

- `


  ### [+cameraWithOrientation:zoom:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera#/c:objc(cs)GMSPanoramaCamera(cm)cameraWithOrientation:zoom:)


  ` Convenience constructor specifying heading and pitch as part of `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)orientation`, plus `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)zoom` and
  default field of view (90 degrees).

  #### Declaration

  Swift

      convenience init(orientation: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Structs/GMSOrientation.html, zoom: Float)

  Objective-C

      + (nonnull instancetype)cameraWithOrientation:(https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Structs/GMSOrientation.html)orientation
                                               zoom:(float)zoom;

- `


  ### [+cameraWithHeading:pitch:zoom:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera#/c:objc(cs)GMSPanoramaCamera(cm)cameraWithHeading:pitch:zoom:)


  ` Convenience constructor specifying `heading`, `pitch`, `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)zoom` with default field of view (90
  degrees).

  #### Declaration

  Swift

      convenience init(heading: CLLocationDirection, pitch: Double, zoom: Float)

  Objective-C

      + (nonnull instancetype)cameraWithHeading:(CLLocationDirection)heading
                                          pitch:(double)pitch
                                           zoom:(float)zoom;

- `


  ### [+cameraWithOrientation:zoom:FOV:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera#/c:objc(cs)GMSPanoramaCamera(cm)cameraWithOrientation:zoom:FOV:)


  ` Convenience constructor for `GMSPanoramaCamera`, specifying all camera properties with heading
  and pitch as part of `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)orientation`.

  #### Declaration

  Objective-C

      + (nonnull instancetype)cameraWithOrientation:(https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Structs/GMSOrientation.html)orientation
                                               zoom:(float)zoom
                                                FOV:(double)FOV;

- `


  ### [+cameraWithHeading:pitch:zoom:FOV:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera#/c:objc(cs)GMSPanoramaCamera(cm)cameraWithHeading:pitch:zoom:FOV:)


  ` Convenience constructor for `GMSPanoramaCamera`, specifying all camera properties.

  #### Declaration

  Swift

      convenience init(heading: CLLocationDirection, pitch: Double, zoom: Float, fov https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera.html#/c:objc(cs)GMSPanoramaCamera(py)FOV: Double)

  Objective-C

      + (nonnull instancetype)cameraWithHeading:(CLLocationDirection)heading
                                          pitch:(double)pitch
                                           zoom:(float)zoom
                                            FOV:(double)FOV;

- `


  ### [FOV](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera#/c:objc(cs)GMSPanoramaCamera(py)FOV)


  ` The field of view (FOV) encompassed by the larger dimension (width or height) of the view in
  degrees at zoom 1. This is clamped to the range \[1, 160\] degrees, and has a default value of 90.

  Lower FOV values produce a zooming in effect; larger FOV values produce an fisheye effect.

  Note: This is not the displayed FOV if zoom is anything other than 1. User zoom gestures
  control the zoom property, not this property.

  #### Declaration

  Swift

      var fov: Double { get }

  Objective-C

      @property (nonatomic, readonly) double FOV;

- `


  ### [zoom](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera#/c:objc(cs)GMSPanoramaCamera(py)zoom)


  ` Adjusts the visible region of the screen. A zoom of N will show the same area as the central
  width/N height/N area of what is shown at zoom 1.

  Zoom is clamped to the implementation defined range \[1, 5\].

  #### Declaration

  Swift

      var zoom: Float { get }

  Objective-C

      @property (nonatomic, readonly) float zoom;

- `


  ### [orientation](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSPanoramaCamera#/c:objc(cs)GMSPanoramaCamera(py)orientation)


  ` The camera orientation, which groups together heading and pitch.

  #### Declaration

  Swift

      var orientation: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Structs/GMSOrientation.html { get }

  Objective-C

      @property (nonatomic, readonly) https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Structs/GMSOrientation.html orientation;