AnsweredAssumed Answered

Javascript API table of contents?

Question asked by dschatt on Feb 18, 2015
Latest reply on Feb 23, 2015 by dschatt

hi all, newbie here trying to familiarize myself with the Javascript API.  I have a dynamic map service with 20 layers or so and I'd like the user to be able to toggle each layer on or off and also show the symbology for each layer, just like the TOC that one would see in Desktop.  The Silverlight API had a sample for this ("Legend with Templates") and I assume Flex did as well.  But I can't find any such sample on the Javascript API page. Do I really need to try to code this myself or get it from a third party?  Hard to believe -- It seems like this is very basic functionality for a GIS tool... or did I miss something?  Thanks!