# GoogleMaps Framework Reference

# GMSMapID

    @interface GMSMapID : NSObject <NSCopying>

An opaque identifier for a custom map configuration.
- `


  ### [-init](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapID#/c:objc(cs)GMSMapID(im)init)


  ` Unavailable

  #### Declaration

  Objective-C

      - (instancetype)init NS_UNAVAILABLE;

- `


  ### [-initWithIdentifier:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapID#/c:objc(cs)GMSMapID(im)initWithIdentifier:)


  ` Creates a new mapID with the given string value.

  #### Declaration

  Swift

      init(identifier: String)

  Objective-C

      - (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier;

- `


  ### [+mapIDWithIdentifier:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapID#/c:objc(cs)GMSMapID(cm)mapIDWithIdentifier:)


  ` Creates a new mapID with the given string value.

  #### Declaration

  Objective-C

      + (nonnull instancetype)mapIDWithIdentifier:(nonnull NSString *)identifier;

- `


  ### [demoMapID](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSMapID#/c:objc(cs)GMSMapID(cpy)demoMapID)


  ` 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 GMSMapID *demoMapID;