<?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 Re: TOC - totally stumped in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257335#M23888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unbelievable!&amp;nbsp; You're the man, John.&amp;nbsp; I appreciate that very much.&amp;nbsp; It's the little things with stuff like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Totally working and a fantastic widget. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 20:52:59 GMT</pubDate>
    <dc:creator>CM2</dc:creator>
    <dc:date>2014-03-19T20:52:59Z</dc:date>
    <item>
      <title>TOC - totally stumped</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257333#M23886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been trying to use &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109" rel="nofollow" target="_blank"&gt;Nliu's TOC&lt;/A&gt;&lt;SPAN&gt; today. I've followed a few examples and looked through the threads here, but I'm totally stumped on why my code isn't working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if anyone might want to take a look at it here:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/Tx4R6/4/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/Tx4R6/4/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My service is definitely working. It contains one layer. You can substitute any known service, but while the service shows in the map, it does not show in the TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've made sure the dijits/functions are called in the correct order. I've seen other examples use the online source for AGSJS so I can't see how that's an issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? Thanks for reading!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 20:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257333#M23886</guid>
      <dc:creator>CM2</dc:creator>
      <dc:date>2014-03-19T20:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: TOC - totally stumped</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257334#M23887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Craig, welcome to our forum!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;its your event listener.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;map.on('layers-add-result', function(e){&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this only gets called when you use the method map.addLayers([layer]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;since you're using map.addLayer(layer); you need to listen for '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jsapi/map-amd.html#event-layer-add-result" rel="nofollow" target="_blank"&gt;layer-add-result&lt;/A&gt;&lt;SPAN&gt;' instead&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 20:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257334#M23887</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-03-19T20:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: TOC - totally stumped</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257335#M23888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unbelievable!&amp;nbsp; You're the man, John.&amp;nbsp; I appreciate that very much.&amp;nbsp; It's the little things with stuff like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Totally working and a fantastic widget. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 20:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257335#M23888</guid>
      <dc:creator>CM2</dc:creator>
      <dc:date>2014-03-19T20:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: TOC - totally stumped</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257336#M23889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no sweat.&amp;nbsp; please consider marking this thread as 'answered'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 20:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toc-totally-stumped/m-p/257336#M23889</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-03-19T20:53:55Z</dc:date>
    </item>
  </channel>
</rss>

