setFeatureStateForFeaturesetDescriptor method

Future<void> setFeatureStateForFeaturesetDescriptor(
  1. FeaturesetDescriptor featureset,
  2. FeaturesetFeatureId featureId,
  3. FeatureState state
)

Update the state map of a feature within a featureset. Update entries in the state map of a given feature within a style source. Only entries listed in the state map will be updated. An entry in the feature state map that is not listed in state will retain its previous value.

Implementation

Future<void> setFeatureStateForFeaturesetDescriptor(
        FeaturesetDescriptor featureset,
        FeaturesetFeatureId featureId,
        FeatureState state) =>
    _mapInterface.setFeatureStateForFeaturesetDescriptor(
        featureset, featureId, state.map);