Doug, That is correct, it will still show up in the TOC structure just unchecked. Currently there is no way to just add one layer of a map service as type dynamic and not have all the rest of the layers show up in the TOC.
<excludelayer mapservice="RCC WasteSites">0,2</excludelayer>
Rhett, I guess the only thing you missed is that Doug is not talking about the TOCWidget.
if(idsArray[0] == "") idsArray = null; var excludes:Object ={ name: name, ids: idsArray, isbasemap: false } trace("excludes.name ",excludes.name); trace("excludes.name ",excludes.ids); excludedLayers.addItem(excludes);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.