Handle layerIds