add_layer function

Add a layer to a map from a source