• JMap.Event.Project.on.projectChange

    This event is triggered when a new project is loaded.

    Parameters

    • listenerId: string

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

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Each time a new project is loaded will display the new project id in the console
    JMap.Event.Project.on.projectChange(
    "custom-project-change",
    params => console.log(`New project id="${params.project.id}"`)
    )