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 layers that are closed or are being closed.
index The position of this layer in the stack.