Edit this page

up.Layer up.Layer.prototype.index
Property

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.

Return value

number

index