Return Value
The index of the layer. The method will return a negative value in case of failure.