NLiu's Table of Contents(TOC)/Map Service nested within another

631
2
11-14-2013 08:11 AM
HaoHu
by
New Contributor II
I have been using the TOC provided by nliu,
http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/latest/examples/toc.html

It's a really nice feature. I noticed that the layer hierarchy is based on Map Service on REST service. But in case that I have two map services from different resources that one of them is belonged to another. In other words, I do not want the two map services on the same level of hierarchy. For example, in the attached figure, I want all the layers in DynamicMapServiceLayer2 under DynamicMapServiceLayer 1 group. Can I implement this when rendering TOC?
[ATTACH=CONFIG]29116[/ATTACH]

A further explanation,
I want the layers and symbology of DynamicMapServiceLayer2 to be consumed under/blended with the DynamicMapServiceLayer 1 groups so that I have a single TOC categorized with group layers  -- and those groups include a variety of rest sources - local and remote.

Does anyone have the similar issue before?

Thanks!
0 Kudos
2 Replies
JeffPace
MVP Alum
Unfortunately the TOC does not support parent/child grouping like that.  However he does supply the source code.
0 Kudos
HaoHu
by
New Contributor II
Thanks Jeff! I will have a look at the source code to see what I can do further.
0 Kudos