Your listener id (must be unique for all map events)
Your listener function
// Each time the map stop moving, will display a message in the console
JMap.Event.Map.on.moveEnd(
"custom-map-move-end",
args => {
console.log(`The map stop moving`, args.map, args.mapEvent)
// mapEvent is the Maplibre event
}
)
JMap.Event.Map.on.moveEnd
This event is triggered when the map end moving (when user or library pan the map).