New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see
New map style for Google Maps Platform.
GoogleMaps Framework Reference
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
-
Declaration
Swift
static var advancedMarkers: GMSMapCapabilityFlags { get }
Objective-C
GMSMapCapabilityFlagsAdvancedMarkers = 1 << 0
-
Declaration
Swift
static var dataDrivenStyling: GMSMapCapabilityFlags { get }
Objective-C
GMSMapCapabilityFlagsDataDrivenStyling = 1 << 1
-
Declaration
Swift
static var spritePolylines: GMSMapCapabilityFlags { get }
Objective-C
GMSMapCapabilityFlagsSpritePolylines = 1 << 2
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["`GMSMapCapabilityFlags` is an enumeration defining flags for conditionally available map capabilities that require specific settings like `mapID`."],["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`, and `GMSMapCapabilityFlagsSpritePolylines`, 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` represent map capabilities that are conditionally available. `GMSMapCapabilityFlagsNone` signifies no enabled capabilities. `GMSMapCapabilityFlagsAdvancedMarkers` indicates advanced markers are enabled. `GMSMapCapabilityFlagsDataDrivenStyling` shows data-driven styling is active. `GMSMapCapabilityFlagsSpritePolylines` confirms that `GMSPolyline` with a `GMSSpriteStyle` stamp is enabled. Each capability has declarations for both Swift and Objective-C, using bitwise operations to represent their states.\n"]]