GoogleNavigation Framework Reference

GMSMapID

@interface GMSMapID : NSObject <NSCopying>

An opaque identifier for a custom map configuration.

  • Unavailable

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Creates a new mapID with the given string value.

    Declaration

    Swift

    init(identifier: String)

    Objective-C

    - (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier;
  • Creates a new mapID with the given string value.

    Declaration

    Objective-C

    + (nonnull instancetype)mapIDWithIdentifier:(nonnull NSString *)identifier;
  • Returns the DEMO_MAP_ID, which can be used for code samples which require a map ID. This map ID is not intended for use in production applications and cannot be used for features which require cloud configuration (such as Cloud Styling).

    Note

    Usage of DEMO_MAP_ID triggers a map load charge against the Dynamic Maps SKU for Android and iOS. For more Information see Google Maps Billing: https://developers.google.com/maps/billing-and-pricing/pricing#dynamic-maps

    Declaration

    Swift

    class var demoMapID: GMSMapID { get }

    Objective-C

    @property (class, nonatomic, readonly) NS_SWIFT_NAME(demoMapID) GMSMapID *demoMapID;