AI-generated Key Takeaways
-
GMSMapViewTypedefines the display styles for aGMSMapView, offering options like normal, satellite, terrain, hybrid, and none. -
The default map type is
kGMSTypeNormalwhich presents a basic map with support for both light and dark color schemes. -
Other map types include satellite imagery with or without labels (
kGMSTypeSatellite,kGMSTypeHybrid), terrain maps (kGMSTypeTerrain), and a display with no map data (kGMSTypeNone). -
Each map type has corresponding Swift and Objective-C enumerations for easy integration into your code.
GMSMapViewType
enum GMSMapViewType : NSUInteger {}Display types for GMSMapView.
-
Basic maps. The default. Supports both Light and Dark color schemes.
Declaration
Swift
case normal = 1Objective-C
kGMSTypeNormal = 1 -
Satellite maps with no labels.
Declaration
Swift
case satellite = 2Objective-C
kGMSTypeSatellite -
Terrain maps. Supports both Light and Dark color schemes.
Declaration
Swift
case terrain = 3Objective-C
kGMSTypeTerrain -
Satellite maps with a transparent label overview.
Declaration
Swift
case hybrid = 4Objective-C
kGMSTypeHybrid -
No maps, no labels. Display of traffic data is not supported.
Declaration
Swift
case none = 5Objective-C
kGMSTypeNone