layer
fun layer(id: String, filter: Value? = null, radius: Double? = null, onLongClick: (FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): MapInteraction
Create the LongClickInteraction for given id.
When several LongClickInteractions are registered for the same id - the callbacks will be triggered from last to first.
Parameters
id
mandatory layer 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 Long Click
callback triggered when layer is clicked.