Class VenueMap

Class that loads data from VMD file, finds waypaths, and labels waypoints. This is the top level class that encapsulates all data for the venue.

Since

1.0.0

Hierarchy

  • VenueMap

Accessors

  • get waypointsMap(): {
        [key: string]: Waypoint;
    }
  • Returns {
        [key: string]: Waypoint;
    }

Methods

  • Adds a waypoint as a neighbor.

    Parameters

    • waypointId: string

      ID of waypoint to be given a neighbor.

    • neighbor: Waypoint

      The neighbor waypoint.

    Returns void

  • Adds a waypoint as a neighbor.

    Parameters

    • waypointId: string

      ID of waypoint to be given a neighbor.

    • neighborId: string

      ID of neighbor waypoint.

    Returns void

  • Creates turn by turn text directions for a given waypath.

    Parameters

    • path: Waypath

      The waypath to create text directions for.

    • customMapInfo: CustomMapInfo = ...

      A CustomMapInfo object that contains custom information for directions.

    • options: TurnByTurnDirectionOptions = ...

      Options to use when creating directions.

    Returns MapDirectionStep[]

    the list of directions

    Throws

    Exception if there are any failures during processing

    Since

    2.0

  • Parameters

    • unitId: string

    Returns Waypoint

  • Iterates through all buildings to find a floor with the given id. All floors will have a unique id regardless of what building they are in.

    Parameters

    • floorId: string

      The id of the floor to search for

    Returns BaseMapBuildingFloor

    The floor that is found or null if one is not found for the given ID

  • Iterates through buildings and floors until it finds a waypoint with the given ID.

    Parameters

    • waypointId: string

      The waypoint ID to search for.

    Returns Waypoint

    The waypoint that is found or null if one is not found for the given ID.

  • Parameters

    • waypointId: string

    Returns Waypoint[]

  • Parameters

    • nodeId: string

    Returns string

  • Labels waypoints with options.

    Parameters

    Returns void

  • Parameters

    Returns void

Properties

centerPoint?: LatLng

Generated using TypeDoc