getting layer information from the service metadata

PR for https://github.com/georchestra/georchestra/issues/756