Class Door

A class representing door data within the map.

Doors are hidden by default. Doors can be made visible by setting their visible property to true.

//Make interior doors visible and brown.
mapView.updateState(DOORS.Interior, {
visible: true,
color: '#5C4033',
opacity: 0.6,
});

//Make exterior doors visible and black.
mapView.updateState(DOORS.Exterior, {
visible: true,
color: 'black',
opacity: 0.6,
});

Doors can also be made visible on an individual basis by passing in a Door object to MapView.updateState.

Refer to the Door Guide for more information and interactive examples.

Door appearance can be customized by changing the color or adding a texture to the top or sides of a door. Refer to the Textures & Colors Guide for more information and interactive examples.

Hierarchy

  • default
    • Door

Properties

id: string

The identity of the map data.

images: ImageData[]

Gets the array of images associated with this data type.

An array of Image objects, or an empty array if no images exist.

links: Hyperlink[]

Gets the links associated with this data type.

The links associated with this data type

Accessors

  • get description(): string
  • Gets the description of the door.

    Returns string

    The description of the door.

  • get externalId(): string
  • Gets the external ID of the door.

    Returns string

    The external ID of the door.

  • get floor(): Floor
  • Gets the Floor object associated with the door.

    Returns Floor

    The floor object.

    Will throw an error if the floor is not found.

  • get isExterior(): boolean
  • Gets whether this door is an exterior door.

    Returns boolean

  • get name(): string
  • Gets the name of the door.

    Returns string

    The name of the door.

Methods

  • Converts the door information to a JSON object.

    Returns {
        center: {
            floor: undefined | string;
            latitude: number;
            longitude: number;
        };
        floor: string;
        id: string;
        name: string;
    }

    An object representing the door.

  • Checks if the provided instance is of type Door.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is Door

    True if the instance is a Door, false otherwise.