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

    Class OverlayMutableCollection

    Mutable Overlay Collection class

    This class should not be instantiated directly.

    Hierarchy

    • OverlayCollection
      • OverlayMutableCollection
    Index

    Properties

    _pointerId: number

    Accessors

    • get overlayInfos(): OverlayInfo[]

      Get all overlay infos in the collection

      Returns OverlayInfo[]

      List of overlay infos

      An exception if it fails

    • get pointerId(): number

      Returns number

    • get size(): number

      Get the number of overlays in the collection

      Returns number

      The number of overlays

      An exception if it fails

    Methods

    • Add an overlay to the collection

      Parameters

      • overlayId: number

        The overlay ID to add

      Returns void

      An exception if it fails

    • Add a specific category of an overlay to the collection

      Parameters

      • overlayId: number

        The overlay ID

      • categoryId: number

        The category ID to add

      Returns void

      An exception if it fails

    • Clear all overlays from the collection

      Returns void

      An exception if it fails

    • Check if the collection contains an overlay

      Parameters

      • overlayId: number

        The overlay ID

      Returns boolean

      True if the overlay is in the collection, false otherwise

      An exception if it fails

    • Check if the collection contains a specific category of an overlay

      Parameters

      • overlayId: number

        The overlay ID

      • categoryId: number

        The category ID

      Returns boolean

      True if the category is in the collection, false otherwise

      An exception if it fails

    • Get an overlay by index

      Parameters

      • index: number

        The index of the overlay

      Returns OverlayInfo | null

      The overlay if found, null otherwise

      An exception if it fails

    • Get an overlay by UID

      Parameters

      • overlayUid: number

        The overlay UID

      Returns OverlayInfo | null

      The overlay if found, null otherwise

      An exception if it fails

    • Remove an overlay from the collection

      Parameters

      • overlayId: number

        The overlay ID to remove

      Returns GemError

      GemError indicating success or failure

      An exception if it fails

    • Remove a specific category of an overlay from the collection

      Parameters

      • overlayId: number

        The overlay ID

      • categoryId: number

        The category ID to remove

      Returns GemError

      GemError indicating success or failure

      An exception if it fails