Layer.onClick

Function/Meaning

The layer was clicked

Type
LayerclassEvent
Syntax
onClick(x, y)
Arguments
x

The x-coordinate value (in the layer's display coordinates) where the layer was clicked.

y

The y-coordinate value (in the layer's display coordinates) where the layer was clicked.

Return value
None (void)
Explanation

Occurs when a layer is clicked.

Reference
Layer.onMouseDown
Layer.onDoubleClick