standardPlaceLabels

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.

When several ClickInteractions are registered for the same importId - the callbacks will be triggered from last to first.

Parameters

importId

optional style import id. Defaults to NULL.

filter

optional filter. Defaults to NULL.

onClick

callback triggered when the place-labels featureset is clicked.


fun LongClickInteraction.Companion.standardPlaceLabels(importId: String? = null, filter: Value? = null, onLongClick: (StandardPlaceLabelsFeature, InteractionContext) -> Boolean): MapInteraction

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

When several LongClickInteractions are registered for the same importId - the callbacks will be triggered from last to first.

Parameters

importId

optional style import id. Defaults to NULL.

filter

optional filter. Defaults to NULL.

onLongClick

callback triggered when the place-labels featureset is long clicked.