AnsweredAssumed Answered

Sublayer visibility only reflects top level GroupLayer visibility?

Question asked by jruland on Oct 7, 2020
Latest reply on Oct 13, 2020 by mnielsen-esristaff

The visibility of GroupLayers is not behaving the way we would expect. We have a layer hierarchy that looks like this:

 

GroupLayer-->GroupLayer-->FeatureLayer

 

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?

Outcomes