Your listener id (must be unique for all layer events)
Your listener function
// Each time the initial search is applied, will display a message in the console
JMap.Event.Layer.on.initialSearchApplied(
"custom-layer-initial-search-applied",
params => {
console.info(`Initial search on layer id="${params.layerId}" has been applied`, params.features)
}
)
JMap.Event.Layer.on.initialSearchApplied
This event is triggered when the initial layer search is applied (if exist).