Adds the layer to the map. The layer must be newly created and not added to the map before
the layer to add