AnsweredAssumed Answered

Get all Final level layers of a Map Service

Question asked by arundoss on Jul 29, 2018

Trying to Get a list of all final level layers below a Group layers regardless of sublayers:

Layer1:

         SubLayer1:

                  FinalLevelLayer

         SubLayer2:

                  SubLayer2/1:

                          FinalLevelLayer

                  SubLayer2/2:

                          FinalLevelLayer

                          SubLayer2/2/1

                                   FinalLevelLayer

I just want to get the final level layers of the "SubLayer2" in the above scenario from a Map Service using ArcGIS Javascript api

Outcomes