AI-generated Key Takeaways
-
This documentation outlines globally available enumerations for the Google Maps SDK for iOS.
-
Enumerations define constants for marker behaviors, geocoder error codes, map capabilities, and more.
-
GMSCollisionBehaviordictates how markers interact, prioritizing 'required' over 'optional' and higher zIndex values. -
GMSMapViewTypelists display types for the map view like 'normal', 'satellite', 'hybrid', and 'terrain'. -
Other enumerations manage aspects like frame rates, padding adjustments, marker animations, and panorama sources.
Enumerations
The following enumerations are available globally.
-
How markers interact with other markers and regular labels. Defaults to
GMSCollisionBehaviorRequired.Marker collisions occur when coordinates intersect.
Priority is defined as: 1) Required > Optional 2) zIndex: higher zIndex > lower zIndex
Beyond this, it is undefined which marker will show if both are optional and have the same zIndex. Regular map labels are the lowest priority.
Declaration
Swift
enum GMSCollisionBehavior : Int, @unchecked SendableObjective-C
enum GMSCollisionBehavior : NSInteger {} -
GMSGeocodererror codes, embedded in NSError.Declaration
Swift
enum GMSGeocoderErrorCode : Int, @unchecked SendableObjective-C
enum GMSGeocoderErrorCode : NSInteger {} -
Flags that represent conditionally-available map capabilities (ones that require a mapID or some other map setting) that can be used to indicate availability.
Declaration
Swift
struct GMSMapCapabilityFlags : OptionSet, @unchecked SendableObjective-C
enum GMSMapCapabilityFlags : NSUInteger {} -
Display types for
GMSMapView.Declaration
Swift
enum GMSMapViewType : UInt, @unchecked SendableObjective-C
enum GMSMapViewType : NSUInteger {} -
Rendering frame rates for
GMSMapView.Declaration
Swift
enum GMSFrameRate : UInt, @unchecked SendableObjective-C
enum GMSFrameRate : NSUInteger {} -
Constants indicating how safe area insets are added to padding.
Declaration
Swift
enum GMSMapViewPaddingAdjustmentBehavior : UInt, @unchecked SendableObjective-C
enum GMSMapViewPaddingAdjustmentBehavior : NSUInteger {} -
Animation types for GMSMarker.
Declaration
Swift
enum GMSMarkerAnimation : UInt, @unchecked SendableObjective-C
enum GMSMarkerAnimation : NSUInteger {} -
Source types for Panoramas. Used to specify the source of a StreetView Panorama.
This API is experimental. Results may not always match expectations.
Declaration
Swift
enum GMSPanoramaSource : UInt, @unchecked SendableObjective-C
enum GMSPanoramaSource : NSUInteger {} -
GMSLengthKindindicates the type of a length value, which can be geodesic (in meters), rhumb length (in meters) and projected length (inGMSMapPointunits).Declaration
Swift
enum GMSLengthKind : UInt, @unchecked SendableObjective-C
enum GMSLengthKind : NSUInteger {}