Add layerByName map and methods to access it