GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSMapID
@interface GMSMapID : NSObject <NSCopying>
An opaque identifier for a custom map configuration.
-
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).
Declaration
Swift
class var demoMapID: GMSMapID { get }
Objective-C
@property (class, nonatomic, readonly) NS_SWIFT_NAME GMSMapID *demoMapID;
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 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSMapID\u003c/code\u003e is an opaque identifier used for custom map configurations.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a \u003ccode\u003eGMSMapID\u003c/code\u003e instance using a unique string identifier.\u003c/p\u003e\n"],["\u003cp\u003eA demo \u003ccode\u003eGMSMapID\u003c/code\u003e is available for code samples, but it's not suitable for production and incurs charges.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eDEMO_MAP_ID\u003c/code\u003e in your application will trigger map load charges under the Dynamic Maps SKU.\u003c/p\u003e\n"]]],[],null,["# GoogleNavigation Framework Reference\n\nGMSMapID\n========\n\n @interface GMSMapID : NSObject \u003cNSCopying\u003e\n\nAn opaque identifier for a custom map configuration.\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSMapID(im)init)\n\n `\n ` \n Unavailable \n\n #### Declaration\n\n Objective-C \n\n - (instancetype)init NS_UNAVAILABLE;\n\n- `\n ``\n ``\n `\n\n ### [-initWithIdentifier:](#/c:objc(cs)GMSMapID(im)initWithIdentifier:)\n\n `\n ` \n Creates a new mapID with the given string value. \n\n #### Declaration\n\n Swift \n\n init(identifier: String)\n\n Objective-C \n\n - (nonnull instancetype)initWithIdentifier:(nonnull NSString *)identifier;\n\n- `\n ``\n ``\n `\n\n ### [+mapIDWithIdentifier:](#/c:objc(cs)GMSMapID(cm)mapIDWithIdentifier:)\n\n `\n ` \n Creates a new mapID with the given string value. \n\n #### Declaration\n\n Objective-C \n\n + (nonnull instancetype)mapIDWithIdentifier:(nonnull NSString *)identifier;\n\n- `\n ``\n ``\n `\n\n ### [demoMapID](#/c:objc(cs)GMSMapID(cpy)demoMapID)\n\n `\n ` \n Returns the DEMO_MAP_ID, which can be used for code samples which require a map ID. This map ID\n is not intended for use in production applications and cannot be used for features which require\n cloud configuration (such as Cloud Styling). \n Note\n 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: \u003chttps://developers.google.com/maps/billing-and-pricing/pricing#dynamic-maps\u003e \n\n #### Declaration\n\n Swift \n\n class var demoMapID: GMSMapID { get }\n\n Objective-C \n\n @property (class, nonatomic, readonly) NS_SWIFT_NAME GMSMapID *demoMapID;"]]