FeaturesetFeature

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:

  1. User map interactions (ClickInteraction, LongClickInteraction).

  2. 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

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Override equals method.

Link copied to clipboard
open override fun hashCode(): Int

Override hashCode method.

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
val geometry: Geometry

Mandatory feature Geometry.

Link copied to clipboard
val id: FeaturesetFeatureId?

Optional identifier holding feature id and feature namespace. It could be NULL when underlying Feature.id is null.

Link copied to clipboard

The feature properties stored in JSONObject.

Link copied to clipboard
val state: FS

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.