getFeatureState

fun getFeatureState(sourceLayerId: String, featureId: String): JsonObject?(source)

Gets the current state of a feature in this source.

The target feature must already have an id in the underlying source data.

Return

the feature state, or null

Parameters

sourceLayerId

the source layer id

featureId

the id of the feature whose state to get