Layer | Matterport SDK
Usage of the SDK constitutes your agreement with the Matterport SDK Agreement. Email developers@matterport.com with any questions.

Hierarchy

Index

Properties

Accessors

Methods

Properties

Tag

Tag: Partial<Tag>

A subset of the Tag namespace's functionality to manipulate Tags on this layer.

Accessors

common

  • get common(): boolean
  • Whether this layer is common (shared across all views)

    Returns boolean

id

  • get id(): string
  • The unique id of the Layer

    Returns string

name

  • get name(): string
  • The human-readable name of the Layer

    Returns string

toggled

  • get toggled(): boolean
  • Whether this Layer toggled on or off. If toggled off, this Layer's objects are hidden.

    Returns boolean

type

Methods

subscribe

toggle

  • toggle(active?: undefined | false | true): Promise<void>
  • Toggle this Layer's state to active.

    Parameters

    • Optional active: undefined | false | true

      Whether this Layer should be toggled on or off. If active is undefined, the state is flipped.

    Returns Promise<void>

waitUntil

  • Wait for a specific condition on this object to be met. When this observable detects a change, the condition provided will be called. When the condition returns true, the returned Promise will be resolved.

    Parameters

    Returns Promise<View.Layer>

    A promise that is resolved when condition returns true.