AI-generated Key Takeaways
-
GMSMapCapabilityFlagsis an enumeration defining flags for conditionally available map capabilities that require specific settings likemapID. -
These flags indicate whether features like advanced markers, data-driven styling, or sprite polylines are enabled on a
GMSMapView. -
The flags include
GMSMapCapabilityFlagsNone,GMSMapCapabilityFlagsAdvancedMarkers,GMSMapCapabilityFlagsDataDrivenStyling, andGMSMapCapabilityFlagsSpritePolylines, each representing a specific capability. -
Developers can use these flags to check if certain features are supported before utilizing them in their map implementations.
GMSMapCapabilityFlags
enum GMSMapCapabilityFlags : NSUInteger {}Flags that represent conditionally-available map capabilities (ones that require a mapID or some other map setting) that can be used to indicate availability.
-
No conditional capabilities are enabled on the
GMSMapView.Declaration
Objective-C
GMSMapCapabilityFlagsNone = 0 -
Advanced markers are enabled on the
GMSMapView.Declaration
Swift
static var advancedMarkers: GMSMapCapabilityFlags { get }Objective-C
GMSMapCapabilityFlagsAdvancedMarkers = 1 << 0 -
Data driven styling is enabled on the
GMSMapView.Declaration
Swift
static var dataDrivenStyling: GMSMapCapabilityFlags { get }Objective-C
GMSMapCapabilityFlagsDataDrivenStyling = 1 << 1 -
GMSPolylinewith a stampStyle ofGMSSpriteStyleis enabled on theGMSMapView.Declaration
Swift
static var spritePolylines: GMSMapCapabilityFlags { get }Objective-C
GMSMapCapabilityFlagsSpritePolylines = 1 << 2