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