layer srs is inherited from map srs

Do not output srs attribute when srs is undefined,
since layer srs is inherited from map srs, it is optional.