A LocationCategory groups one or more LocationProfile. These allow similar locations to be sorted in a logical fashion. For example a mall may group locations into Food Court, Footwear and Women's Fashion. They can be accessed using the MapData.getByType method as shown below.

const categories = mapData.getByType('location-category');

Data Source: Maker - This class is only available when using Maker credentials (API keys starting with mik_). When using CMS/Enterprise credentials (clientId/clientSecret or keys that do NOT start with mik_), use EnterpriseCategory instead.

EnterpriseCategory for the CMS/Enterprise equivalent.

Hierarchy

  • default
    • LocationCategory

Implements

  • Omit<MVFCategory, "parent">

Properties

Accessors

Methods

Properties

icon: string

The category's icon

uri

id: string

The identity of the map metadata.

name: string

Accessors

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 LocationCategory

    True if the instance is a EnterpriseLocation, false otherwise.