A simple collection holder for buildings.

Export

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Private

    Creates an instance of MPBuildingCollection.

    Parameters

    • buildings: MPBuilding[]

      A collection of buildings used in MapsIndoors.

    Returns MPBuildingCollection

Properties

map: Map<String, MPBuilding>

The map the objects are kept in.

nameMap: Map<String, MPBuilding>

A custom map of buildings by their names.

Accessors

  • get size(): number
  • The number of objects in the collection.

    Returns number

Methods

  • Gets all objects contained in the collection.

    Returns MPBuilding[]

  • Get a object by its identifier.

    Parameters

    • id: string

    Returns MPBuilding

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

    Parameters

    • Optional object: any

    Returns MPBuildingCollection

    Static

Generated using TypeDoc