> Documentation index: https://developers.google.com/maps/documentation/llms.txt

# GoogleMaps Framework Reference

# GMSMapViewOptions

    @interface GMSMapViewOptions : NSObject

This class defines initialization-time options for `GMSMapView`.
- `


  ### [frame](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapViewOptions.md.txt#/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.md.txt#/c:objc(cs)GMSMapViewOptions(py)camera)


  ` Initial camera position. Defaults to nil.

  #### Declaration

  Swift

      var camera: GMSCameraPosition? { get set }

  Objective-C

      @property (nonatomic, nullable) GMSCameraPosition *camera;

- `


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


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

  #### Declaration

  Swift

      var mapID: GMSMapID? { get set }

  Objective-C

      @property (nonatomic, nullable) GMSMapID *mapID;

- `


  ### [backgroundColor](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapViewOptions.md.txt#/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 `GMSMapView` 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;