StyleInteractionsState

StyleInteractionsState manages the map interactions defined for the style.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun onFeaturesetClicked(id: String, importId: String? = null, filter: Expression? = null, onClick: FeaturesetFeatureScope.(FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): StyleInteractionsState

Add the ClickInteraction for given featureset defined with id and optional importId.

Link copied to clipboard
fun onFeaturesetLongClicked(id: String, importId: String? = null, filter: Expression? = null, onLongClick: FeaturesetFeatureScope.(FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): StyleInteractionsState

Add the LongClickInteraction for given featureset defined with id and optional importId.

Link copied to clipboard
fun onLayerClicked(id: String, filter: Expression? = null, onClick: FeaturesetFeatureScope.(FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): StyleInteractionsState

Add the ClickInteraction for given id.

Link copied to clipboard
fun onLayerLongClicked(id: String, filter: Expression? = null, onLongClick: FeaturesetFeatureScope.(FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): StyleInteractionsState

Add the LongClickInteraction for given id.

Link copied to clipboard
fun onMapClicked(onClick: FeaturesetFeatureScope.(InteractionContext) -> Boolean): StyleInteractionsState

Add the ClickInteraction for the map surface itself.

Link copied to clipboard
fun onMapLongClicked(onLongClick: FeaturesetFeatureScope.(InteractionContext) -> Boolean): StyleInteractionsState

Add the LongClickInteraction for the map surface itself.