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

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

Index

Constructors

Properties

deletedStates: {}
revision: number
stateChanges: LayerFeatureStatesMap

Methods

  • Parameters

    • sourceLayer: string
    • featureId: string | number

    Returns FeatureState

  • Parameters

    • sourceLayer: string
    • OptionalfeatureId: string | number
    • Optionalkey: string

    Returns void

  • Parameters

    • sourceLayer: string
    • featureId: string | number
    • newState: any

    Returns void

Was this helpful?