on Layer Clicked
fun onLayerClicked(layerId: String, filter: Expression? = null, onClick: InteractiveFeatureScope.(InteractiveFeature<FeatureState>, InteractionContext) -> Boolean): StyleInteractionsState
Add the ClickInteraction for given layerId.
When several ClickInteractions are registered for the same layerId - the callbacks will be triggered from last to first.
Parameters
layer Id
mandatory layer id.
filter
optional filter. Defaults to NULL.
on Click
callback triggered when layer is clicked.