• JMap.Map.Interaction.activateInteractorById

    Activate an existing map interactor.

    Deactivate the previous one, and activate the new one.

    Parameters

    • interactorId: string

      The interactor id to activate

    Returns void

    Throws

    Error if interactor is not found

    Example

    // Activate the JMAP defined interactor "draw"
    JMap.Map.Interaction.activateInteractorById("draw")