@magiclane/maps-sdk
    Preparing search index...

    Class EntranceLocations

    Stores locations & access types for entrances to landmarks.

    This class should not be instantiated directly. Instead, use the Landmark.entrances getter to obtain an instance.

    Hierarchy

    • GemAutoreleaseObject
      • EntranceLocations
    Index

    Constructors

    • Internal

      Parameters

      • id: number

        The pointer ID

      • mapId: number

        The map ID

      Returns EntranceLocations

    Accessors

    • get count(): number

      Get the entrances count.

      Returns number

      The number of entrances

    • get id(): number

      Returns number

    • get mapId(): number

      Returns number

    Methods

    • Add new entrance location.

      Parameters

      Returns boolean

      true if the entrance location was added successfully, false otherwise

    • Dispose the entrance locations object

      Returns void

    • Get the coordinates specified by index.

      Parameters

      • index: number

        Index of entrance location

      Returns Coordinates

      Coordinates of the entrance location specified by index

    • Get the entrance type specified by index.

      Parameters

      • index: number

        Index of entrance location

      Returns EntranceLocationType

      Type of the entrance location specified by index

    • Registers an object for auto release. When the object is not used anymore, it will be released automatically from C++.

      Parameters

      • pointerId: any

        The pointer ID to register

      Returns void