featureset
fun featureset(id: String, importId: String? = null, filter: Value? = null, radius: Double? = null, onClick: (FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): MapInteraction
Create the ClickInteraction for given featureset defined with id and optional importId.
When several ClickInteractions are registered for the same id and importId - the callbacks will be triggered from last to first.
Parameters
id
mandatory featureset id.
import Id
optional style import id.
filter
optional filter. Defaults to NULL.
radius
of an extra area around touch in screen pixels. Defaults to NULL meaning 0-radius pixels area.
on Click
callback triggered when featureset is clicked.