reset Feature States
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.
Note that updates to feature state are asynchronous, so changes made by this method might not be immediately visible using getStateFeature
.
Return
A cancelable
object that could be used to cancel the pending operation.
Parameters
source Id
The style source identifier.
source Layer Id
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.