updateLayersControl function

Update the layer controls when adding layers to an existing map.