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