Looking for a good Table of Contents sample

Discussion created by stevel on Jun 27, 2011
Latest reply on Aug 8, 2011 by stevel
The samples page is curiously missing a decent Table of Contents example. There's the Toggle Layer Visibility sample but that's about it.

Does can anyone point me to a decent Table of Contents sample for the JavaScript API? I need the ability to:

  • support feature layers, cached layers and dynamic layers

  • zoom to extent

  • toggle on/off

  • show the symbology

  • support transparency

The example here is promising but not quite right, and doesn't seem to support feature layers.

The TOC in the maps you can create at is perfect - can we easily get to this functionality?