<?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: LayerList legend not updating correctly in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79342#M7262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have called it in. Currently, their work-around is to use the &lt;A href="https://developers.arcgis.com/javascript/jsapi/layerlist-amd.html#event-toggle"&gt;toggle&lt;/A&gt; event to refresh the widget when a layer is toggled. Unfortunately, this has the side effect of collapsing the LayerList widget every time you toggle a layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14491588265257024 jive_text_macro" data-renderedposition="71_8_912_16" jivemacro_uid="_14491588265257024" modifiedtitle="true"&gt;&lt;P&gt;myWidget.on("toggle", function (){ myWidget.refresh(); });&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't have any effect on the startup issue, though. I tried refreshing the widget when the load event is fired, but that leaves the legend totally empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="layerlist.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/151216_layerlist.png" style="width: 620px; height: 496px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2015 16:16:21 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2015-12-03T16:16:21Z</dc:date>
    <item>
      <title>LayerList legend not updating correctly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79340#M7260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/javascript/jsapi/layerlist-amd.html"&gt;LayerList&lt;/A&gt; widget in 3.15 has some additional functionality, including showing the legend. However, the legend doesn't get updated when the checkbox on a layer is clicked. It will only update when the map is zoomed in or out. It will not update if the map is panned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsbin.com/xibave/edit?output" title="http://jsbin.com/xibave/edit?output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 21:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79340#M7260</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-12-02T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList legend not updating correctly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79341#M7261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I am seeing the same thing. Are you going to call this into Tech Support?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 21:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79341#M7261</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-02T21:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList legend not updating correctly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79342#M7262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have called it in. Currently, their work-around is to use the &lt;A href="https://developers.arcgis.com/javascript/jsapi/layerlist-amd.html#event-toggle"&gt;toggle&lt;/A&gt; event to refresh the widget when a layer is toggled. Unfortunately, this has the side effect of collapsing the LayerList widget every time you toggle a layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14491588265257024 jive_text_macro" data-renderedposition="71_8_912_16" jivemacro_uid="_14491588265257024" modifiedtitle="true"&gt;&lt;P&gt;myWidget.on("toggle", function (){ myWidget.refresh(); });&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't have any effect on the startup issue, though. I tried refreshing the widget when the load event is fired, but that leaves the legend totally empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="layerlist.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/151216_layerlist.png" style="width: 620px; height: 496px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 16:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79342#M7262</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-12-03T16:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList legend not updating correctly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79343#M7263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been fixed in 3.16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ENH-000092811: Layerlist widget now updates the legend on the toggle of the sub layers.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 16:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-legend-not-updating-correctly/m-p/79343#M7263</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-03-21T16:05:42Z</dc:date>
    </item>
  </channel>
</rss>

