VMMapUnit

@objcMembers
open class VMMapUnit : NSObject

Public Properties

  • uid

    Unique identifier for map unit

    Declaration

    Swift

    public var uid: String
  • The floor that this unit belongs to

    Declaration

    Swift

    public var floor: VMMSBaseFloor?
  • The coordinates that make up the map unit area that would be clickable

    Declaration

    Swift

    public var coordinates: [[NSValue]] { get set }
  • The GeoJSON coordintes

    Declaration

    Swift

    public var geojsonCoordinates: [Any]
  • The Geojson geometry type

    Declaration

    Swift

    public var geometryType: String
  • The name of the map unit (i.e. Room 1012)

    Declaration

    Swift

    public var name: String
  • The category of the map unit (i.e. MEETING)

    Since

    2.0

    Declaration

    Swift

    public var category: String
  • The UUID of the map unit

    Since

    2.0

    Declaration

    Swift

    public var placeId: String
  • The position of the label

    Declaration

    Swift

    public var labelLocation: CLLocationCoordinate2D
  • Declaration

    Swift

    public var labelClass: String
  • Declaration

    Swift

    public var labelFeatureId: String
  • The type of icon to use

    Declaration

    Swift

    public var icon: String
  • The position of the icon

    Declaration

    Swift

    public var iconLocation: CLLocationCoordinate2D
  • The location of the hotspot for this room

    Declaration

    Swift

    public var hotspotLocation: CLLocationCoordinate2D
  • Center of the unit (calculated)

    Declaration

    Swift

    public var centerLocation: CLLocationCoordinate2D
  • The type of this unit

    Declaration

    Swift

    public var type: VMMSMapUnitType

Initializers

  • Initialize a new VMMSMapUnit with the given uid

    Declaration

    Swift

    public init(uid: String)
  • Initialize a new VMMSMapUnit with no uid

    Declaration

    Swift

    public override convenience init()

Public Methods

  • Set the type for the MapUnit. Options:

    • restroommen
    • restroomwomen
    • elevator
    • stairwell
    • room
    • walkway
    • amenity
    • fixture
    • other

    Declaration

    Swift

    public func setMapUnitType(_ className: String)
  • Merge the properties of another unit with this one.

    Since

    Since 1.4

    Declaration

    Swift

    public func merge(withUnit subUnit: VMMapUnit)

Method Overrides

  • Description for the VMMapUnit

    Declaration

    Swift

    public override var description: String { get }