• JMap.Event.Layer.on.thematicDeletion

    This event is triggered when a thematic is deleted.

    Parameters

    • listenerId: string

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

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Each time a thematic is deleted, will display a message in the console
    JMap.Event.Layer.on.thematicDeletion(
    "custom-thematic-deletion",
    params => {
    console.log(`Thematic id="${params.thematicId}" of layer id="${params.layerId}" has been deleted client-side`)
    }
    )