Thanks a lot for the info Dominique, but maybe I am still doing something wrong. Tried setting the layer visibility using these methods a few ways:
foreach (LayerInfo layerInfo in Layers)
SetLayerVisibility(layerInfo.ID, layerInfo.DefaultVisibility);
foreach (LayerInfo layerInfo in Layers)
SetLayerVisibility(layerInfo.ID, GetLayerVisibility(layerInfo.ID));
But I still have the problem mentioned in number 1, and the disabled group layers are rendering. Am I doing something wrong? Maybe you could elaborate more on how I should be using those methods?Thanks again!