Your listener id (must be unique for all layer events)
Your listener function
// Each time a layer thematic visibility is changed this method is processed
JMap.Event.Layer.on.thematicVisibilityChange(
"custom-thematic-visibility-change",
params => {
console.log(
`Layer id="${params.layerId}", ` +
`thematic id="${params.thematicId}" ` +
`visible="${params.visibility}"`
)
}
)
JMap.Event.Layer.on.thematicVisibilityChange
This event is triggered when a layer thematic visibility changed.