layer
fun layer(id: String, filter: Value? = null, onClick: (FeaturesetFeature<FeatureState>, InteractionContext) -> Boolean): MapInteraction
Create the ClickInteraction for given id.
When several ClickInteractions 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.
on Click
callback triggered when layer is clicked.