resetFeatureStates

abstract fun resetFeatureStates(sourceId: String, sourceLayerId: String? = null, callback: FeatureStateOperationCallback): Cancelable

Reset all the feature states within a style source.

Remove all feature state entries from the specified style source or source layer.

Return

A cancelable object that could be used to cancel the pending operation.

Parameters

sourceId

The style source identifier.

sourceLayerId

The style source layer identifier (for multi-layer sources such as vector sources).

callback

The feature state operation callback called when the operation completes or ends.