A class that implements IFocusable can be focused on by the camera.

Hierarchy

  • default
    • LocationProfile

Implements

Properties

description?: string
externalId?: string
extra?: Record<string, unknown>

Additional user defined data. The type is unknown, so it is recommended to validate the data before use.

Only available when loading MVFv3 data.

const mapData = await getMapData({
...
mvfVersion: '3.0.0',
});

const locationProfile = mapData.getById('location-profile', id);
if (typeof locationProfile?.extra?.myProperty === 'string') {
// Do something
}

The location's icon to display. Will be either a logo, category, or image

uri

id: string

The identity of the map metadata.

images: ImageMetaData[]

The location's pictures

links: Hyperlink[]

Web links for the location

logo?: string

The location's logo

uri

name: string
phone?: string
social: LocationSocial[]

The location's social media links.

website?: Hyperlink

The location's website

Accessors

  • get areas(): Area[]

    Gets the Areas associated with the location.

    Returns Area[]

    The areas array.

  • get doors(): Door[]

    Gets the Doors associated with the location.

    Returns Door[]

    The doors array.

  • get spaces(): Space[]

    Gets the Spaces associated with the location.

    Returns Space[]

    The spaces array.

Methods

  • Returns { __type: string; id: string; name: string }

  • Checks if the provided instance is of type EnterpriseLocation.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is LocationProfile

    True if the instance is a EnterpriseLocation, false otherwise.