MapKitEventListener
A type alias that represents a function or an object that receives a MapKit event.
Declaration
type MapKitEventListener<T extends MapKitEvent = MapKitEvent> =
| ((event: T) => void)
| {
handleEvent<T>(event: T): void;
};Discussion
You can specify the event listener as either a function or an object with a handleEvent method.