Corrected layers iteration in determineCRSFromLayers.
Identation
Corrected access to layers property.