InteractiveFeature

class InteractiveFeature<FH : FeaturesetHolder>(featuresetHolder: FH, feature: Feature, featureNamespace: String?, state: Value) : BaseInteractiveFeature<FH, FeatureStateValue>

The interactive feature object returned in the callback of interactions when using the featureset factory method (e.g. ClickInteraction.featureset or LongClickInteraction.featureset).

Constructors

Link copied to clipboard
fun <FH : FeaturesetHolder> InteractiveFeature(featuresetHolder: FH, feature: Feature, featureNamespace: String?, state: Value)

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
val feature: Feature

The interactive feature data (id, geometry, properties as JSON) encapsulated in the Feature object.

Link copied to clipboard

Optional feature namespace.

Link copied to clipboard

The FeaturesetHolder this concrete interactive feature comes from. Could be FeaturesetHolder.Featureset or FeaturesetHolder.Layer.

Link copied to clipboard

Current interactive feature state stored as a raw Value. Note that this state is immutable and represents the interactive feature state at the precise moment of the interaction callback.