MapFeatureStateDelegate

Definition of the feature state delegate needed to update the feature state of the map.

Functions

Link copied to clipboard
abstract fun getFeatureState(sourceId: String, sourceLayerId: String? = null, featureId: String, callback: QueryFeatureStateCallback): Cancelable

Get the state map of a feature within a style source.

Link copied to clipboard
abstract fun removeFeatureState(sourceId: String, sourceLayerId: String? = null, featureId: String, stateKey: String? = null, callback: FeatureStateOperationCallback): Cancelable

Removes entries from a feature state object.

Link copied to clipboard
abstract fun removeFeatureStateExpression(featureStateExpressionId: Int, callback: FeatureStateOperationCallback = FeatureStateOperationCallback { })

Removes a specific feature state expression.

Link copied to clipboard
abstract fun resetFeatureStateExpressions(callback: FeatureStateOperationCallback = FeatureStateOperationCallback { })

Reset all feature state expressions.

Link copied to clipboard
abstract fun resetFeatureStates(sourceId: String, sourceLayerId: String? = null, callback: FeatureStateOperationCallback): Cancelable

Reset all the feature states within a style source.

Link copied to clipboard
abstract fun setFeatureState(sourceId: String, sourceLayerId: String? = null, featureId: String, state: Value, callback: FeatureStateOperationCallback): Cancelable

Updates the state object of a feature within a style source.

Link copied to clipboard
abstract fun <FS : FeatureState> setFeatureStateExpression(featureStateExpressionId: Int, featureset: TypedFeaturesetDescriptor<FS, *>, expression: Value, state: FS, callback: FeatureStateOperationCallback = FeatureStateOperationCallback { })

Sets a feature state expression that applies to features within the specified featureset.

Inheritors

Link copied to clipboard