Companion

object Companion

Static variables and methods.

Functions

Link copied to clipboard
fun featureset(id: String, importId: String? = null, filter: Value? = null, onClick: (FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): MapInteraction

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

Link copied to clipboard
operator fun invoke(onClick: (InteractionContext) -> Boolean): ClickInteraction<Nothing>

Create the ClickInteraction for the map surface itself.

Link copied to clipboard
fun layer(id: String, filter: Value? = null, onClick: (FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): MapInteraction

Create the ClickInteraction for given id.

Extensions

Link copied to clipboard
fun ClickInteraction.Companion.standardBuildings(importId: String? = null, filter: Value? = null, onClick: (StandardBuildingsFeature, InteractionContext) -> Boolean): MapInteraction

Create the ClickInteraction for Mapbox Standard Style buildings featureset and an optional importId.

Link copied to clipboard
fun ClickInteraction.Companion.standardPlaceLabels(importId: String? = null, filter: Value? = null, onClick: (StandardPlaceLabelsFeature, InteractionContext) -> Boolean): MapInteraction

Create the ClickInteraction for Mapbox Standard Style place-labels featureset and an optional importId.

Link copied to clipboard
fun ClickInteraction.Companion.standardPoi(importId: String? = null, filter: Value? = null, onClick: (StandardPoiFeature, InteractionContext) -> Boolean): MapInteraction

Create the ClickInteraction for Mapbox Standard Style poi featureset and an optional importId.