GoogleMaps Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSIndoorBuilding
@interface GMSIndoorBuilding : NSObject
Describes a building which contains levels.
-
Array of GMSIndoorLevel describing the levels which make up the building.
The levels are in ‘display order’ from top to bottom.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSArray<GMSIndoorLevel *> *_Nonnull levels;
-
Index in the levels array of the default level.
Declaration
Swift
var defaultLevelIndex: UInt { get }
Objective-C
@property (nonatomic, readonly) NSUInteger defaultLevelIndex;
-
If YES, the building is entirely underground and supports being hidden.
Declaration
Swift
var isUnderground: Bool { get }
Objective-C
@property (nonatomic, readonly, getter=isUnderground) BOOL underground;
-
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
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\u003eGMSIndoorBuilding\u003c/code\u003e objects represent buildings with multiple levels, organized in a specific display order.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elevels\u003c/code\u003e property provides access to an array of \u003ccode\u003eGMSIndoorLevel\u003c/code\u003e objects, representing the building's floors.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edefaultLevelIndex\u003c/code\u003e indicates the index of the default level within the \u003ccode\u003elevels\u003c/code\u003e array.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eunderground\u003c/code\u003e property, if true, signifies the building is entirely underground and can be hidden.\u003c/p\u003e\n"],["\u003cp\u003eDirect initialization of \u003ccode\u003eGMSIndoorBuilding\u003c/code\u003e is unavailable; it's likely obtained from other Google Maps SDK objects or methods.\u003c/p\u003e\n"]]],["GMSIndoorBuilding describes a building with multiple levels. It contains an array of `GMSIndoorLevel` objects in display order from top to bottom, accessible via the `levels` property. The `defaultLevelIndex` property specifies the index of the default level within this array. The `underground` property indicates if the entire building is below ground. The `init` method is unavailable for this class.\n"],null,["# GoogleMaps Framework Reference\n\nGMSIndoorBuilding\n=================\n\n @interface GMSIndoorBuilding : NSObject\n\nDescribes a building which contains levels.\n- `\n ``\n ``\n `\n\n ### [levels](#/c:objc(cs)GMSIndoorBuilding(py)levels)\n\n `\n ` \n Array of GMSIndoorLevel describing the levels which make up the building.\n The levels are in 'display order' from top to bottom. \n\n #### Declaration\n\n Swift \n\n var levels: [../Classes/GMSIndoorLevel.html] { get }\n\n Objective-C \n\n @property (nonatomic, strong, readonly) NSArray\u003c../Classes/GMSIndoorLevel.html *\u003e *_Nonnull levels;\n\n- `\n ``\n ``\n `\n\n ### [defaultLevelIndex](#/c:objc(cs)GMSIndoorBuilding(py)defaultLevelIndex)\n\n `\n ` \n Index in the levels array of the default level. \n\n #### Declaration\n\n Swift \n\n var defaultLevelIndex: UInt { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSUInteger defaultLevelIndex;\n\n- `\n ``\n ``\n `\n\n ### [underground](#/c:objc(cs)GMSIndoorBuilding(py)underground)\n\n `\n ` \n If YES, the building is entirely underground and supports being hidden. \n\n #### Declaration\n\n Swift \n\n var isUnderground: Bool { get }\n\n Objective-C \n\n @property (nonatomic, readonly, getter=isUnderground) BOOL underground;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSIndoorBuilding(im)init)\n\n `\n ` \n Unavailable \n\n #### Declaration\n\n Objective-C \n\n - (instancetype)init NS_UNAVAILABLE;"]]