The visibility of GroupLayers is not behaving the way we would expect. We have a layer hierarchy that looks like this:
When we toggle on/off the visibility of the topmost GroupLayer all sub layers toggle on or off with it as expected. When we toggle on/off the FeatureLayers at the bottom of the hierarchy these also toggle on or off as expected. However, when we toggle on/off the middle GroupLayer I would expect all sub layers (a collection of FeatureLayers in our case) to toggle on or off with it, but instead nothing happens.
It would appear that the low level FeatureLayers are reflecting the visibility of the topmost GroupLayer and ignoring the visibility of the mid level group layer. Is this the expected behavior? If so, how can we get the bottom level FeatureLayers to reflect the visibility of the mid level GroupLayer instead?