Featureset Feature
open class FeaturesetFeature<FS : FeatureState> @RestrictTo(value = [RestrictTo.Scope.LIBRARY ] ) constructor(val id: FeaturesetFeatureId?, val descriptor: TypedFeaturesetDescriptor<FS, *>, val state: FS, originalFeature: Feature)
The map interaction result object returned in the callback of:
User map interactions (ClickInteraction, LongClickInteraction).
Map query methods like
MapboxMap.queryRenderedFeatures
.
Constructors
Link copied to clipboard
fun <FS : FeatureState> FeaturesetFeature(id: FeaturesetFeatureId?, descriptor: TypedFeaturesetDescriptor<FS, *>, state: FS, originalFeature: Feature)
Functions
Properties
Link copied to clipboard
The TypedFeaturesetDescriptor this concrete feature comes from. List of supported featuresets could be found in the nested classes (e.g. TypedFeaturesetDescriptor.Featureset, TypedFeaturesetDescriptor.Layer etc).
Link copied to clipboard
Link copied to clipboard
Current feature state stored as a concrete instance of FeatureState. Important: this state is immutable and represents the feature state at the precise moment of the interaction callback.