Properties part for an object that can have event state.
Features with this type can store their current event state (click, hover, etc.), which is used for styling and interaction handling.
This is typically mixed into feature properties to track interactive states. The SDK automatically manages these states based on user interactions.
// Feature with click stateconst featureProps: SupportsEvents = { eventState: 'click'};// Feature with hover stateconst hoveredProps: SupportsEvents = { eventState: 'hover'};// Feature with no event stateconst normalProps: SupportsEvents = {}; Copy
// Feature with click stateconst featureProps: SupportsEvents = { eventState: 'click'};// Feature with hover stateconst hoveredProps: SupportsEvents = { eventState: 'hover'};// Feature with no event stateconst normalProps: SupportsEvents = {};
Optional
Current event state of the feature.
undefined
This property is automatically managed by the SDK based on user interactions and programmatic state changes.
Properties part for an object that can have event state.
Features with this type can store their current event state (click, hover, etc.), which is used for styling and interaction handling.
Remarks
This is typically mixed into feature properties to track interactive states. The SDK automatically manages these states based on user interactions.
Example