Notify the pan event. Will also notify the "all" event.
Notify the rotate event. Will also notify the "all" event.
Notify the zoom event. Will also notify the "all" event.
Subscribe to the camera event. You can also pass in the abort controller signal within the options to cancel the subscription. Like this:
const controller = new AbortController();
const unSubscribe = on("pan", (event, cameraState)=>{}, {signal: controller.signal});
// later in other place where you want to unsubscribe
controller.abort();
This means you can cancel multiple subscriptions by aborting the same controller. Just like regular event listeners.
Optional
options: SubscriptionOptions
The camera update publisher.