• JMap.Event.Map.on.selectionChanged

    This event is triggered when the map selection has changed.

    Parameters

    • listenerId: string

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

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // When the selection changed, will display old and new selections in the console
    JMap.Event.Map.on.selectionChanged(
    "custom-selection-changed",
    params => {
    console.log("Old selection:", params.oldSelection)
    console.log("New selection:", params.newSelection)
    }
    )