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