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