resetFeatureStates

suspend fun MapboxMap.resetFeatureStates(sourceId: String, sourceLayerId: String? = null): Expected<String, None>

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

None or a string describing an error.

Parameters

sourceId

The style source identifier.

sourceLayerId

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