Returns the index of a layer in the ordered layers array by its path.
The map identifier
The layer path to search for
The zero-based index of the layer, or -1 if not found
Returns the index of a layer in the ordered layers array by its path.