MapsIndoors iOS SDK V3
|
#include <MPBuilding.h>
Instance Methods | |
(nullable MPFloor *) | - getFloor |
(nullable NSNumber *) | - getInitFloor |
(nullable NSNumber *) | - getFloors |
(nullable NSArray< MPFloor * > *) | - getFloorArray |
(void) | - setFloor: |
(void) | - showBuilding:onMap: |
(void) | - updateBuildingTiles |
(void) | - hideBuilding |
(nullable GMSCoordinateBounds *) | - getBuildingBounds |
Properties | |
NSNumber * | currentFloor |
id< MPBuildingDelegate > | delegate |
GMSMapView * | map |
NSNumber * | floorsReady |
NSString * | externalId |
NSString * | buildingId |
Get building id. | |
NSString * | address |
Get building address. | |
NSString * | administrativeId |
Get building administrative id. | |
NSMutableDictionary< NSString *, MPFloor * >< MPFloor > * | floors |
Get building floors. | |
NSString * | name |
Get building name. | |
MPPoint * | anchor |
Get building anchor coordinate. | |
NSArray< NSArray * > * | bounds |
Get building bounds. | |
NSString * | venueId |
NSNumber * | defaultFloor |
NSDictionary< NSString *, MPLocationField * >< MPLocationField > * | fields |
Holds relevant data for a single building, and the buildings floor levels.
- (nullable GMSCoordinateBounds *) getBuildingBounds |
Get the geographic bounds for the building
- (nullable MPFloor *) getFloor |
Get the current floor.
- (nullable NSNumber *) getFloors |
Get the number of floors.
- (nullable NSNumber *) getInitFloor |
Get the initial/default floor upon creation.
- (void) hideBuilding |
Hide the building from the map.
- (void) setFloor: | (nullable NSNumber *) | floor |
Set the current floor property (without affecting the building display).
floor | The floor number to replace current floor with. |
- (void) showBuilding: | (nullable NSNumber *) | newFloor | |
onMap: | (nullable GMSMapView *) | map |
Use this method to actually shift floor and show the building level.
newFloor | The floor number that represents the building level. |
map | Affected map. |
- (void) updateBuildingTiles |
Updates the current floor tile layer by clearing the tile cache.
|
readwritenonatomicstrong |
Get building address.
|
readwritenonatomicstrong |
Get building administrative id.
|
readwritenonatomicstrong |
Get building anchor coordinate.
|
readwritenonatomicstrong |
Get building bounds.
|
readwritenonatomicstrong |
Get building id.
|
readwritenonatomicstrong |
Holds the current floor.
|
readnonatomicstrong |
Get the buildings default floor. Is used by MPMapControl to determine which floor to show if a user have not already selected a floor.
|
readwritenonatomicweak |
Delegate that holds the building ready event method. Relevant when using offline mode, as it will take a while to load the database upon first app start.
|
readwritenonatomicstrong |
External id.
|
readnonatomicstrong |
Dictionary of custom fields
Get building floors.
|
readwritenonatomicstrong |
Simple counter that keeps track of how many floors and related tile layers are ready.
|
readwritenonatomicweak |
Reference to the map. The reference is used to activate/deactivate tile layers.
|
readwritenonatomicstrong |
Get building name.
|
readnonatomicstrong |
Venue id