VMMSMapUnit
@interface VMMSMapUnit : NSObject
Represents an element on the map, usually something associated with a label or icon
Since
1.1-
Initialize a new VMMSMapUnit with the given uid
Declaration
Swift
- (instancetype)init:(NSString *)uid;
Parameters
uid
the identifier for this unit
Return Value
an instance of this object
-
Add a wayfinding node to this unit
Declaration
Swift
- (void)addWayfindingNode:(VMMSWaypoint *)waypoint;
Parameters
waypoint
the waypoint
-
Set this map units type from the given class name
Declaration
Swift
- (void)setMapUnitType:(NSString *)className;
Parameters
className
predefined class name that represents the unit’s type
-
Unique identifier for map unit
Declaration
Swift
@property (readwrite, strong, nonatomic) NSString *uid;
-
The floor that this unit belongs to
Declaration
Swift
@property (readwrite, nonatomic) VMMSBaseFloor *floor;
-
Wayfinding nodes the map unit is relevant to
Declaration
Swift
@property (readwrite, strong, nonatomic) NSMutableArray<VMMSWaypoint *> *wayfindingNodes;
-
The coordinates that make up the map unit area that would be clickable
Declaration
Swift
@property (readwrite, strong, nonatomic) NSArray<NSValue *> *coordinates;
-
Declaration
Swift
@interface VMMSMapUnit : NSObject
-
Declaration
Swift
@interface VMMSMapUnit : NSObject
-
The name of the map unit (i.e. Room 1012)
Declaration
Swift
@property (readwrite, strong, nonatomic) NSString *name;
-
The position of the label
Declaration
Swift
@property (assign, readwrite, nonatomic) CLLocationCoordinate2D labelLocation;
-
The type of icon to use
Declaration
Swift
@property (readwrite, strong, nonatomic) NSString *icon;
-
The position of the icon
Declaration
Swift
@property (assign, readwrite, nonatomic) CLLocationCoordinate2D iconLocation;
-
The location of the hotspot for this room
Declaration
Swift
@property (assign, readwrite, nonatomic) CLLocationCoordinate2D hotspotLocation;
-
Center of the unit (calculated)
Declaration
Swift
@property (readonly, nonatomic) CLLocationCoordinate2D centerLocation;
-
The type of this unit
Declaration
Swift
@property (assign, readwrite, nonatomic) VMMSMapUnitType type;