layer

Create the LongClickInteraction for given layerId.

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

Parameters

layerId

mandatory layer id.

filter

optional filter. Defaults to NULL.

onLongClick

callback triggered when layer is clicked.