GoogleMaps Framework Reference

  • GMSIndoorDisplay allows observation and control of indoor level data display, usable only on the main thread.

  • It provides access to the currently focused building (activeBuilding) and its active level (activeLevel).

  • The activeLevel property can be manipulated to change the displayed level or hide the building while keeping it active.

  • A delegate (delegate) can be assigned to receive updates and events related to indoor display changes.

GMSIndoorDisplay

@interface GMSIndoorDisplay : NSObject

Provides ability to observe or control the display of indoor level data.

Like GMSMapView, GMSIndoorDisplay may only be used from the main thread.

  • GMSIndoorDisplay delegate

    Declaration

    Swift

    weak var delegate: (any GMSIndoorDisplayDelegate)? { get set }

    Objective-C

    @property (nonatomic, weak, nullable) id<GMSIndoorDisplayDelegate> delegate;
  • Provides the currently focused building, will be nil if there is no building with indoor data currently under focus.

    Declaration

    Swift

    var activeBuilding: GMSIndoorBuilding? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) GMSIndoorBuilding *activeBuilding;
  • Provides and controls the active level for activeBuilding. Will be updated whenever activeBuilding changes, and may be set to any member of activeBuilding’s levels property. May also be set to nil if the building is underground, to stop showing the building (the building will remain active).

    Will always be nil if activeBuilding is nil.

    Any attempt to set it to an invalid value will be ignored.

    Declaration

    Swift

    var activeLevel: GMSIndoorLevel? { get set }

    Objective-C

    @property (nonatomic, nullable) GMSIndoorLevel *activeLevel;