AnsweredAssumed Answered

Getting Layers within a GroupLayer that contains other GroupLayers

Question asked by Chris_323 on Oct 17, 2014
Latest reply on Oct 17, 2014 by Chris_323

Hi Guys,

I was wondering if someone can help me out. I am trying to search for a certain layer using the ID property but my map contains many different types of Layers.

Here is a small diagram I have quickly made up to help explain what I am trying to do.

 

GroupLayerOne

     ChildLayerOne

     ChildLayerTwo

GroupLayerTwo

     ChildGroupLayerOne

          LayerOne

          LayerTwo

          LayerThree

     ChildLayerThree

GraphicsLayer

 

I am trying to think of a easy way of searching through all these layers to find the one I want. I been toying around with trying to do it myself but I was wondering if the ESRI SDK had some functionailty that would make this easier.

 

Any advice/help appericated guys.

 

Thanks,

Chris

Outcomes