FeaturesetFeatureScope

The featureset feature scope provides extension functions to FeaturesetFeature so that user can update feature state directly on the FeaturesetFeature within this scope.

Note that this is a sealed interface, it's not expected to be implemented outside of this library.

Functions

Link copied to clipboard
abstract fun <FS : FeatureState, FSK : FeatureStateKey<FS>> FeaturesetFeature<FS>.removeFeatureState(stateKey: FSK? = null, callback: FeatureStateOperationCallback = FeatureStateOperationCallback { }): Cancelable

Removes entries from a feature state based on the FeaturesetFeature.

Link copied to clipboard
abstract fun <FS : FeatureState> FeaturesetFeature<FS>.resetFeatureStates(callback: FeatureStateOperationCallback = FeatureStateOperationCallback { }): Cancelable

Reset all the feature states within a style source.

Link copied to clipboard
abstract fun <FS : FeatureState> FeaturesetFeature<FS>.setFeatureState(state: FS, callback: FeatureStateOperationCallback = FeatureStateOperationCallback {}): Cancelable

Sets the state map for the FeaturesetFeature.

Link copied to clipboard

Extension function allowing to set the StandardBuildingsState for StandardBuildingsFeature in the most convenient way.

Link copied to clipboard
Link copied to clipboard

Extension function allowing to set the StandardPoiState for StandardPoiFeature in the most convenient way.