For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class SourceFeatureState
Index
Constructors
Properties
Methods
Constructors
constructor
Returns SourceFeatureState
Methods
coalesceChanges
Parameters
- inViewTiles: InViewTiles
- painter: Painter
Returns void
getState
Parameters
- sourceLayer: string
- featureId: string | number
Returns FeatureState
initializeTileState
removeFeatureState
Parameters
- sourceLayer: string
OptionalfeatureId: string | numberOptionalkey: string
Returns void
updateState
Parameters
- sourceLayer: string
- featureId: string | number
- newState: any
Returns void
Internal
SourceFeatureState manages the state and pending changes to features in a source, separated by source layer. stateChanges and deletedStates batch all changes to the tile (updates and removes, respectively) between coalesce() events. addFeatureState() and removeFeatureState() also update their counterpart's list of changes, such that coalesce() can apply the proper state changes while agnostic to the order of operations. In deletedStates, all null's denote complete removal of state at that scope