Your listener id (must be unique)
Your listener function
// Triggered after a map-context error occurs
JMap.Event.MapContext.on.applyError("my-apply-error-listener", params => {
console.info(`An error occured while applying map context id="${params.context.title}"`, params.context)
})
JMap.Event.MapContext.on.applyError
This event is triggered when an error occurs while applying a map-context.