• JMap.Event.Project.on.postDeactivation

    This event is triggered when current active project has been deactived.

    When this event is triggered, the project has been deactivated.

    Project's data on the map, in the redux state, etc... should not be available anymore.

    Parameters

    • listenerId: string

      Your listener id (must be unique for all project events)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Each time the current active project will be deactivated it will display the project id in the console
    JMap.Event.Project.on.postDeactivation(
    "custom-project-post-deactivation",
    params => console.log(`Project id="${params.project.id}" is now deactivated`)
    )