Your listener id (must be unique for all layer events)
Your listener function
// 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`)
}
)
JMap.Event.Layer.on.thematicDeletion
This event is triggered when a thematic is deleted.