<?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: Refresh agsjs.dijit.TOC and esri.dijit.Legend after adding an additional Service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658041#M61384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible to rebind or refresh agsjs.dijit.TOC and esri.dijit.Legend if i add an additional Service dynamically after&amp;nbsp; loading the complete map page along with TOC and Legend.....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can detect when a layer is added to the map by listening for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#onLayerAdd"&gt;map.onLayerAdd()&lt;/A&gt;&lt;SPAN&gt;. You can then refresh the legend using &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/legend.htm#referesh"&gt;legend.refresh()&lt;/A&gt;&lt;SPAN&gt;. The TOC probably has an equivalent refresh method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2012 03:52:06 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2012-08-07T03:52:06Z</dc:date>
    <item>
      <title>Refresh agsjs.dijit.TOC and esri.dijit.Legend after adding an additional Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658040#M61383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to rebind or refresh agsjs.dijit.TOC and esri.dijit.Legend if i add an additional Service dynamically after&amp;nbsp; loading the complete map page along with TOC and Legend.....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 03:43:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658040#M61383</guid>
      <dc:creator>ReddaiahPurma</dc:creator>
      <dc:date>2012-08-07T03:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh agsjs.dijit.TOC and esri.dijit.Legend after adding an additional Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658041#M61384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it possible to rebind or refresh agsjs.dijit.TOC and esri.dijit.Legend if i add an additional Service dynamically after&amp;nbsp; loading the complete map page along with TOC and Legend.....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can detect when a layer is added to the map by listening for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#onLayerAdd"&gt;map.onLayerAdd()&lt;/A&gt;&lt;SPAN&gt;. You can then refresh the legend using &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/legend.htm#referesh"&gt;legend.refresh()&lt;/A&gt;&lt;SPAN&gt;. The TOC probably has an equivalent refresh method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 03:52:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658041#M61384</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-08-07T03:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh agsjs.dijit.TOC and esri.dijit.Legend after adding an additional Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658042#M61385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can detect when a layer is added to the map by listening for &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#onLayerAdd"&gt;map.onLayerAdd()&lt;/A&gt;. You can then refresh the legend using &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/legend.htm#referesh"&gt;legend.refresh()&lt;/A&gt;. The TOC probably has an equivalent refresh method.&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanq Steve.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have fixed that for Legend but for TOC i cant find any refresh method....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var inltoc=dijit.byId("inlineDiv");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; inltoc.layerInfos=layerInfocv;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By this i am able to bind new Layers to TOC but unable to reflect that in "inlineDiv"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 05:05:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658042#M61385</guid>
      <dc:creator>ReddaiahPurma</dc:creator>
      <dc:date>2012-08-07T05:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh agsjs.dijit.TOC and esri.dijit.Legend after adding an additional Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658043#M61386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;for TOC i cant find any refresh method....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmmmm - I can't see anything, either. The author's contact details are included in the &lt;/SPAN&gt;&lt;A href="http://gmaps-utility-gis.googlecode.com/svn/!svn/bc/354/trunk/agsjs/src/agsjs/dijit/TOC.js"&gt;script &lt;/A&gt;&lt;SPAN&gt;- perhaps you could try asking him directly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 05:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-agsjs-dijit-toc-and-esri-dijit-legend/m-p/658043#M61386</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-08-07T05:27:08Z</dc:date>
    </item>
  </channel>
</rss>

