As explained in the API docs, the array index is the same as in the layers array.