Returns the zero-based position of this layer in the layer stack.
The root layer has an index of 0
, its child overlay has an index of 1
, and so on.
This property has no defined behavior for closed layers.
index The position of this layer in the stack.