@geoblocks/ol-comfy
    Preparing search index...

    Manage a virtual group of interaction by setting a group uid in every added interaction. It can add, remove, find interaction, and toggle the active state of interactions.

    Index

    Constructors

    Methods

    • Adds the given interaction to the given map with an uid. The interaction can't be in multiple groups at the same time.

      Parameters

      • uid: string

        The uid to associate with the interaction

      • interaction: Interaction

        The interaction to add

      Returns void

    • Finds an interaction by its uid

      Parameters

      • uid: string

        The uid of the interaction to find

      Returns undefined | Interaction

      The interaction if found, undefined otherwise

    • Finds all interaction having uid included in the provided uid.

      Parameters

      • uidPart: string

        A start part uid of the interaction to find.

      Returns Interaction[]

      The interaction if found or undefined otherwise.

    • Verifies if the interaction is already present in the map

      Parameters

      • uid: string

        The uid of the interaction to check

      Returns boolean

      boolean indicating if the interaction is present

    • Removes the given interaction from the map.

      Parameters

      • uid: string

        The uid of the interaction to remove

      Returns void

    • Activate the interaction (and deactivate other interactions of this group) or deactivate it.

      Parameters

      • active: boolean
      • uid: string

      Returns void