Class BaseMapBuilding

Class that contains information for a building within a venue.

Since

2.0.0

Hierarchy

  • BaseMapBuilding

Constructors

  • Initializer to use if the building has and a custom building number. Otherwise the building number is deduced from the id pattern.

    Parameters

    • id: string

      ID of the building.

    • name: string

      Name of the building.

    • buildingNumber: number

      the number of the building

    Returns BaseMapBuilding

    Since

    1.2

Methods

  • Adds a floor this building.

    Parameters

    Returns void

  • Returns number

    the building ordinal value

    Since

    1.1

  • The center of the building, based on its shape. Note: This may be a weird location if the building is oddly shaped

    Returns LatLng

    the center of the building

    Since

    1.1

  • Returns string

  • Returns LatLng[][]

    the coordinates making of the perimeter of this building

  • Returns string

  • Returns any[]

    Since

    1.2.1

  • Returns string

    Since

    1.2.1

  • Returns string

    Unique identifier of the building.

  • Returns string

    Display name of the building.

  • Returns string

  • Parameters

    • floorId: string

    Returns boolean

  • Parameters

    • buildingBounds: LatLngBounds

      the new bounding box for this building

    Returns void

    Since

    1.2

  • Parameters

    • id: string

      the new unique identifier of the building.

    Returns void

  • Parameters

    • name: string

      the new name

    Returns void

  • Strip off the last number from the end of the id

    Parameters

    • id: string

      the building id

    Returns number

    the number

  • Initializer to use if building does not have a name.

    Parameters

    • id: string

      ID of the building.

    Returns BaseMapBuilding

  • Initializer to use if the building has a name.

    Parameters

    • id: string

      ID of the building.

    • name: string

      Name of the building.

    Returns BaseMapBuilding

Properties

buildingBounds: LatLngBounds
buildingNumber: number
id: string
name: string

Generated using TypeDoc