resetFeatureStates

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

the optional error wrapped in Expected.

Parameters

descriptor

TypedFeaturesetDescriptor object representing either a featureset or a single layer.