Your listener id (must be unique for all user events)
Your listener function
// Each time a feature is created, this method is processed
JMap.Event.Feature.on.creation(
"custom-feature-creation",
params => console.info(`For layer id="${params.layerId}", feature id="${params.featureId}" geometry has been created`)
)
JMap.Event.Feature.on.creation
This event is triggered when a feature has been created.