resetFeatureStates

abstract fun <FS : FeatureState> FeaturesetFeature<FS>.resetFeatureStates(callback: FeatureStateOperationCallback = FeatureStateOperationCallback { }): Cancelable

Reset all the feature states within a style source.

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

Note that updates to feature state are asynchronous, so changes made by this method might not be immediately visible using getFeatureState.

Return

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

Parameters

callback

The FeatureStateOperationCallback called when the operation completes or ends.