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

    Class OverlayInfo

    Overlay info class

    This class should not be instantiated directly.

    Hierarchy

    • GemAutoreleaseObject
      • OverlayInfo
    Index

    Constructors

    • Parameters

      • pointerId: number

      Returns OverlayInfo

    Accessors

    • get categories(): OverlayCategory[]

      Get the overlay categories.

      Returns OverlayCategory[]

      List of overlay categories

      An exception if it fails

    • get image(): Uint8Array<ArrayBufferLike> | null

      Get the image of the overlay

      Returns Uint8Array<ArrayBufferLike> | null

      The image as Uint8Array if available, null otherwise

      An exception if it fails

    • get img(): Img

      Get the Img object of the overlay

      Returns Img

      The Img object

      An exception if it fails

    • get name(): string

      Get the name of the overlay

      Returns string

      The overlay name

      An exception if it fails

    • get pointerId(): number

      Returns number

    • get uid(): number

      Get the unique ID of the overlay

      Returns number

      The overlay ID

      An exception if it fails

    Methods

    • Get the overlay category by ID

      Parameters

      • categId: number

        The category ID

      Returns OverlayCategory | null

      The category if found, null otherwise

      An exception if it fails

    • Check if a category has subcategories

      Parameters

      • categId: number

        The category ID

      Returns boolean

      True if the category has subcategories, false otherwise

      An exception if it fails

    • 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