get_layer function

Extract a layer from a Feature or Map Server