Select to view content in your preferred language

TOC Solution for 1,000+ layers?

2603
10
11-30-2012 08:30 AM
DougBrowning
MVP Esteemed Contributor
Just seeing if anyone has ideas on a cool TOC that would work with with 1,000+ layers.  There would be several categories and subcategories.  Maybe a See More feature. 

I thought I would find a whole bunch of cool Flex options out there but so far have found nothing.  I am open to any style, does not have to be a simple carrot dropdown tree thing (whatever you call it).  Something precoded I am not going to have to build all from scratch.

I know having a TOC that big is not usually recommended but this is going to be a huge central repository so it needs to be that way.

Any ideas or links to websites that have samples are very appreciated. 

For an example of "different" I mean things like http://www.visualcomplexity.com/vc/

Thanks a lot.
Tags (2)
0 Kudos
10 Replies
BrianSodano
Emerging Contributor
Our company, 4am Inc, has developed a Table of Contents widget that will allow you to organize and present large numbers of layers. What makes this manageable is an intuitive grouping mechanism.

Layers are grouped in multiple ways:
1st Group - Accordian style: open an accordian and the main widget window is dedicated to that group of layers.

2nd Group - Within accordians: layers can be grouped into folders.

This widget also properly handles 3 state checkboxes for visibility. If some, but not all, child layers are visible within a layer group or service, that service will display a 3rd state (semi-checked). This is a critical feature when dealing with many layers.

It is compatible with the Flex 2.x API and will also display a legend for any selected layer.
[ATTACH=CONFIG]19659[/ATTACH][ATTACH=CONFIG]19660[/ATTACH]
0 Kudos
DougBrowning
MVP Esteemed Contributor
Thanks Brian.  This is actually exactly what we have now.  But it is still getting really long with the 300 or layers in there so far.  We are looking into a "See More" button to limit the number of layers displayed in each subcategory.  Only bummer there is that we will then have to add each layer one by one to the list instead adding the whole map at once.

I looked at UI options all day Friday but did not see anything I wanted.  Maybe using carousels or as someone drills down the current structure appears at the top.  But nothing seems to be a good fit so far.

The idea I have now is to leave the TOC like yours and then create a "Working Layers" widget.  This would be a TOC for just the current session.  That way people do not have to go hunting back through the huge list just to toggle layers.  Whenever a layer is turned on in the big list it automatically gets added to the Working Set.  A user could also click Add to Working Set in the TOC without turning it on.  Anyone done anything like this?

Thanks
0 Kudos
GISDev1
Deactivated User
I would interested in hearing your hardware and software configuration/infrastructure that supports such capacity and throughput.

My recommendation is to go Windows 7 style, and let the user search for layer names and use autocomplete, then let them drag the layers they want into a different widget window which could be their temporary TOC for that session, or store their layer choices in a client-side cookie to save throughout sessions.
0 Kudos
DougBrowning
MVP Esteemed Contributor
I am at a large govt agency so all the servers are handled by an outside contractor and I do not get to have much insight into this.  It sounds like they are trying just one large machine but as a former server room guy I have my doubts, lets just say that.

I did end up creating a "Working Set TOC".  It automatically adds any layer that is made visable during the session.  I might also add a Add To option in the main large TOC.  The dragging is a cool idea but probably beyond my capabilities as a new Flex guy (I might look into it as a challenge). 

If you want to see how I got this Working Set TOC to work I posted the code as part of this post - http://forums.arcgis.com/threads/72877-Why-is-Legend-Widget-still-updating?p=255217#post255217

We do have plans for a search function, the autocomplete would be cool, I will have to look into it.  We want to add the saving of session info but the policy people will not let us.

Thanks for the ideas.
0 Kudos
ZahidChaudhry
Deactivated User
Just Curious, Why dont you add search/filter option...where users can see some category and then use filter or some sorta search mechanism to view only what they need...I dont see a point even displaying 100+ layers, ...I mean really who have time to....


Just a thought
0 Kudos
AnthonyGiles
Honored Contributor
Doug,

Have you thought about amending the drag and drop map services widget:

http://www.arcgis.com/home/item.html?id=ca9e4de998714d07a6bdc59ededa0efc

This way users can just select the layers they want to use

Just a thought,

Regards

Anthony
0 Kudos
DougBrowning
MVP Esteemed Contributor
Thanks Anthony.  Not exactly sure what you mean though. 

I have been trying to code the ability to drag a layer from the main large TOC to the Working Set TOC but have not been able to figure it out.  It never lets me drag anything.  I do not see in your code how that works.  I see the part of the map accepting the drag but nothing that allows the drag.  It is just beyond me as a newbie I guess.

I have it working where a user checks the visible box in the main TOC and it shows up in working set.  I am now looking into a way to remove a layer from the Working Set TOC (through an icon or menu item I guess). 

I also am going to try and find a way to save the list of layers out to a users computer and then be able to add the list back in (saving the session state of the Working TOC basically).

Thanks
0 Kudos
DougBrowning
MVP Esteemed Contributor
I have now finished adding

  Auto Add to Working Set TOC on Visible Checkbox Check in other TOC
  Ability to add to the Working Set TOC by drag and drop from other TOC
  A button to remove a layer from the Working Set TOC
  A Save Current Working Set TOC feature that saves the current state to a local txt file
  A Load a Saved Working Set TOC feature that loads a saved TOC state from a local txt file


I will give the code changes required if anyone wants them.  It has not been cleaned up at all.

Thanks for all the help.
0 Kudos
GISDev1
Deactivated User
I have now finished adding

  Auto Add to Working Set TOC on Visible Checkbox Check in other TOC
  Ability to add to the Working Set TOC by drag and drop from other TOC
  A button to remove a layer from the Working Set TOC
  A Save Current Working Set TOC feature that saves the current state to a local txt file
  A Load a Saved Working Set TOC feature that loads a saved TOC state from a local txt file


I will give the code changes required if anyone wants them.  It has not been cleaned up at all.

Thanks for all the help.


That's pretty cool man. Could you share that?
0 Kudos