# GoogleMaps Framework Reference

# GMSMapViewOptions

    @interface GMSMapViewOptions : NSObject

This class defines initialization-time options for `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapView.html`.
- `


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


  ` Initial frame for the view. Defaults to `CGRectZero`.

  #### Declaration

  Swift

      var frame: CGRect { get set }

  Objective-C

      @property (nonatomic) CGRect frame;

- `


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


  ` Initial camera position. Defaults to nil.

  #### Declaration

  Swift

      var camera: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSCameraPosition.html? { get set }

  Objective-C

      @property (nonatomic, nullable) https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSCameraPosition.html *camera;

- `


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


  ` The mapID for advanced map usage. Defaults to nil.

  #### Declaration

  Swift

      var mapID: https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapID.html? { get set }

  Objective-C

      @property (nonatomic, nullable) https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapID.html *mapID;

- `


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


  ` Specifies the background color of the map view, which displays whenever the map tiles are not
  fully loaded. This is required because `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapView.html` ignores the inherited mutable
  backgroundColor. The color is displayed on the background of the map. Defaults to a light grey
  color.

  #### Declaration

  Swift

      var backgroundColor: UIColor? { get set }

  Objective-C

      @property (nonatomic, nullable) UIColor *backgroundColor;