A MapsIndoors geographical entity. A floor is contained within a MPBuilding.

Export

Hierarchy

Constructors

  • Private

    Creates an instance of MPFloor.

    Parameters

    • Optional id: string

      The floor's ID.

    • Optional name: string

      The floor's name.

    • Optional geometry: MPMultiPolygon

      The geometry of the floor.

    • Optional aliases: string[]

      An array of aliases used by the floor.

    • Optional floorIndex: number

      The floor index of the floor.

    • Optional buildingId: string

      The ID of the building this floor lies within.

    Returns MPFloor

Properties

aliases?: string[]

An array of aliases used by the floor.

buildingId?: string

The ID of the building this floor lies within.

floorIndex?: number

The floor index of the floor.

geometry?: MPMultiPolygon

The geometry of the floor.

id: string

The floor's ID.

name: string

The floor's name.

type: string

The type of the entity (eg. MPLocation).

defaultGroundFloorIndex: number = 0

The default floor index is 0, as that is the index of ground floors and any point outside a building.

Static

Accessors

  • get bounds(): MPBounds
  • Get the floor's bounds.

    Returns MPBounds

  • get displayName(): string
  • Get the floor's displayName.

    Returns string

  • get floorId(): string
  • Get the floor's id.

    Returns string

  • get isPoint(): boolean
  • Whether the entity's geometry is a point.

    Returns boolean

    Abstract

  • get position(): MPPoint
  • Get the floor's position, this is usually the center of the floors geometry.

    Returns MPPoint

Methods

  • Stringifies the entity.

    Returns string

  • Creator for MPFloor, used to decode JSON from the MapsIndoors SDK.

    Parameters

    Returns MPFloor

    Static

Generated using TypeDoc