GMSMapViewOptions Class Reference

GMSMapViewOptions Class Reference

Overview

This class defines initialization-time options for GMSMapView.

Properties

CGRect frame
 Initial frame for the view.
GMSCameraPositioncamera
 Initial camera position.
GMSMapIDmapID
 The mapID for advanced map usage.
UIColor * backgroundColor
 Specifies the background color of the map view, which displays whenever the map tiles are not fully loaded.

Property Documentation

- (CGRect) frame [read, write, assign]

Initial frame for the view.

Defaults to CGRectZero.

- (GMSCameraPosition*) camera [read, write, assign]

Initial camera position.

Defaults to nil.

- (GMSMapID*) mapID [read, write, assign]

The mapID for advanced map usage.

Defaults to nil.

- (UIColor*) backgroundColor [read, write, assign]

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.