Your listener id (must be unique for all map events)
Your listener function
// When the map zoom change, it will display a message in the console
JMap.Event.Map.on.zoom(
"custom-map-zoom",
args => console.log(`The map zoom changed (zoom="${args.zoom}")`)
)
JMap.Event.Map.on.zoom
This event is triggered when zooming on map