Event Handlers
The following event handlers are provided by the Map SDK:
Event Handler | Event | Description |
---|---|---|
onClick | MouseEvent | Called when the user clicks on the map. Contained in MapEventHandlers . |
onFilterUpdate | Filter | Called when a map filter changes. Contained in FilterEventHandlers . |
onGeometrySelection | GeometrySelectionEvent | Called when a geometry is selected on the map. Contained in MapEventHandlers . |
onHover | MouseEvent | Called when a mouse hovers over a visible part of the map. Contained in MapEventHandlers . |
onLayerTimelineUpdate | LayerTimeline | Called when the layer timeline's current time has changed. Contained in LayerEventHandlers . |
onViewUpdate | View | Called when the visible map viewport changes. Contained in MapEventHandlers . |
onUserEvent | UserEvent | Called when the user triggers an event. |
Usage
When using Javascript, event handlers can be accessed, added, and modified through the map object. With Python, use set_event_handlers
to set and modify event handlers, and remove_event_handlers
to remove event handlers.
🚧 Usage examples coming soon 🚧
Updated 4 months ago