Class MapUnit

This class contains data that can be used to position markers on a map.

Since

2.0.0

Hierarchy

  • MapUnit

Constructors

Methods

  • Adds an individual coordinate to the list of coordinates that make up the touchable area of the map unit's polygon.

    Parameters

    • latLng: LatLng

      the coordinate to add

    Returns void

  • Adds a waypoint to the list of wayfinding nodes that are associated with the map unit.

    Parameters

    Returns void

  • Returns Feature<Geometry, {
        [name: string]: any;
    }>

  • Checks to see if the map unit contains a hotspot location.

    Returns boolean

    true if the map unit has a hotspot location, false othersie

  • Checks to see if the map unit has an icon that can be used.

    Returns boolean

    true if the map unit has an icon and icon location, false otherwise

  • Checks to see if the map unit contains data that can be used to generate a label.

    Returns boolean

    true if the map unit has a name and label location, false otherwise

  • Checks to see if the map unit contains an ID.

    Returns boolean

    true if the id is empty, false otehrwise

  • Parameters

    • coordinates: LatLng[][]

      the coordinates that form a polygon to represent the touchable area of a map unit.

    Returns void

  • Returns Map<string, any>

    Since

    2.0.0

Properties

category?: string
centerLocation?: LatLng

Calculated center location based on list of coordinates.

coordinates: LatLng[][] = []

Coordinates that form a polygon to represent the touchable area of a map unit.

The floor that the map unit is located on.

geojsonCoordinates: any[] = []
geometryType: "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection"
hotSpotLocation: LatLng = null

The location of the hotspot for this room

icon?: string

The name of the icon for the map unit.

iconLocation?: LatLng

The location for the map unit's icon.

id: string = ''
labelLocation?: LatLng

The location for the map unit's label.

name: string = ''

The display name of the map unit (i.e. Lobby).

placeId?: string

The type of map unit.

wayfindingNodes: Waypoint[] = []

A List of wayfinding nodes that are associated with the map unit.

Generated using TypeDoc