removeFeatureState method

Future<void> removeFeatureState(
  1. String sourceId,
  2. String? sourceLayerId,
  3. String featureId,
  4. String? stateKey,
)

Removes a single state property (or all properties) from a feature within a style source. Pass null for stateKey to remove all.

Requirements for featureId: On web, GeoJSON feature ids must be a numeric string — GL JS's internal vector-tile pipeline only supports integer feature ids.

Implementation

Future<void> removeFeatureState(
  String sourceId,
  String? sourceLayerId,
  String featureId,
  String? stateKey,
) => _impl.removeFeatureState(sourceId, sourceLayerId, featureId, stateKey);