<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Legend TOC Not Building in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-toc-not-building/m-p/587499#M54880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using the TOC widget from &lt;/SPAN&gt;&lt;A href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/docs/toc/examples.html"&gt;http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/docs/toc/examples.html&lt;/A&gt;&lt;SPAN&gt; so that I can combine the table of contents and legend. It works great except that I recently noticed that once in a while it builds the TOC and fails to populate it (i.e. the layer divs are added but they're empty; &amp;lt;div id="agsjs_dijit__RootLayerTOC_0" widgetid="agsjs_dijit__RootLayerTOC_0"&amp;gt;&amp;lt;/div&amp;gt; instead of having the additional data within that div for each layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone encountered this problem before? It's not consistent (sometimes it loads the TOC perfectly) so I'm having a hard time tracking down the error. In my code the build is first connected to the map by dojo.connect(map, 'onLayersAddResult', function (results) which fires a function to test that each layer has been loaded app.layers[propt].loaded. Then if all layers come back as loaded it configures the TOC and starts it. I can't figure out why it's not always building correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 20:04:52 GMT</pubDate>
    <dc:creator>JustinShepard</dc:creator>
    <dc:date>2013-07-23T20:04:52Z</dc:date>
    <item>
      <title>Legend TOC Not Building</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-toc-not-building/m-p/587499#M54880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using the TOC widget from &lt;/SPAN&gt;&lt;A href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/docs/toc/examples.html"&gt;http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/docs/toc/examples.html&lt;/A&gt;&lt;SPAN&gt; so that I can combine the table of contents and legend. It works great except that I recently noticed that once in a while it builds the TOC and fails to populate it (i.e. the layer divs are added but they're empty; &amp;lt;div id="agsjs_dijit__RootLayerTOC_0" widgetid="agsjs_dijit__RootLayerTOC_0"&amp;gt;&amp;lt;/div&amp;gt; instead of having the additional data within that div for each layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone encountered this problem before? It's not consistent (sometimes it loads the TOC perfectly) so I'm having a hard time tracking down the error. In my code the build is first connected to the map by dojo.connect(map, 'onLayersAddResult', function (results) which fires a function to test that each layer has been loaded app.layers[propt].loaded. Then if all layers come back as loaded it configures the TOC and starts it. I can't figure out why it's not always building correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 20:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/legend-toc-not-building/m-p/587499#M54880</guid>
      <dc:creator>JustinShepard</dc:creator>
      <dc:date>2013-07-23T20:04:52Z</dc:date>
    </item>
  </channel>
</rss>

