Class MapEvents

Source
Expand description

Class to handle map events. It allows adding, removing, and emitting events for map interactions.

Constructors§

Source§

new MapEvents(events: PICK[]): MapEvents

Constructor for MapEvents

Methods§

Source§

addEventListener(event: string, listener: MapEventListener): void

Adds an event listener for a specific map event.

Source§

emit(event: string, selection: number[] | string[], layerId: string): void

Emits an event with the provided selection and layer ID.

Source§

removeEventListener(event: string, listener: MapEventListener): void

Removes an event listener for a specific map event.