<?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: Dynamic Legend item sort order in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41390#M1919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip Rhett.&amp;nbsp; I actually got rid of the white background on the Dynamic Legend widget since I was using the sandy color theme which is a light BG already.&amp;nbsp; The background I had looked better than a white box to me.&amp;nbsp; I totally understand the contrast benefit of a white box, but I pretty much had that with the background color I was using.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2013 16:53:54 GMT</pubDate>
    <dc:creator>AaronPerry</dc:creator>
    <dc:date>2013-07-30T16:53:54Z</dc:date>
    <item>
      <title>Dynamic Legend item sort order</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41387#M1916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is regarding Robert Scheitlin's Dynamic Legend widget located &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=f60406b9f52340d59eb557bf64136af6" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; I am using the 3.2 uncompiled version.&amp;nbsp; My operational layers seem to be displaying in no particular order in the widget.&amp;nbsp; I'm sure it's based on something, but right now it seems quite random.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone explain the logic behind the sorting of items in the Dynamic Legend widget, and how/where I might go about changing or controlling it?&amp;nbsp; I'd really like to have them in the order they are listed in the Map Switcher widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 14:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41387#M1916</guid>
      <dc:creator>AaronPerry</dc:creator>
      <dc:date>2013-07-26T14:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Legend item sort order</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41388#M1917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I solved this by upgrading my source code from 3.2 to 3.4 and using the out of the box Legend widget.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I went to the Dynamic Legend widget because the 3.2 OOB Legend widget wasn't updating when layers were turned on and off, or when graphics layers were added by my widgets.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Today I rebuilt my viewer with a fresh download of 3.4 source and the OOB Legend works as expected now and is itself dynamic.&amp;nbsp; And it nicely matches the Map Switcher ordering which is what I wanted from Dynamic Legend when I asked this question.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41388#M1917</guid>
      <dc:creator>AaronPerry</dc:creator>
      <dc:date>2013-07-30T15:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Legend item sort order</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41389#M1918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For me, one of the other nice features of the Dynamic legend was the nice white background that the OOB doesn't have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can modify the bottom of the OOB LegendWidget.mxml to this to get the white box that the dynamic legend has:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;viewer:WidgetTemplate id="wTemplate"&amp;gt;
&amp;nbsp; &amp;lt;s:Rect bottom="0"
&amp;nbsp;&amp;nbsp;&amp;nbsp; left="0"
&amp;nbsp;&amp;nbsp;&amp;nbsp; right="0"
&amp;nbsp;&amp;nbsp;&amp;nbsp; top="0"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:stroke&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:SolidColorStroke 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alpha="{getStyle('borderAlpha')}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color="{getStyle('borderColor')}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight="1"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/s:stroke&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:fill&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:SolidColor alpha="1" color="0xffffff"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/s:fill&amp;gt;
&amp;nbsp; &amp;lt;/s:Rect&amp;gt;
&amp;nbsp; &amp;lt;esri:Legend id="myLegend"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="100%" height="100%"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; top="10"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; respectCurrentMapScale="{respectCurrentMapScale}"/&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/viewer:WidgetTemplate&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41389#M1918</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-10T21:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Legend item sort order</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41390#M1919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip Rhett.&amp;nbsp; I actually got rid of the white background on the Dynamic Legend widget since I was using the sandy color theme which is a light BG already.&amp;nbsp; The background I had looked better than a white box to me.&amp;nbsp; I totally understand the contrast benefit of a white box, but I pretty much had that with the background color I was using.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 16:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/dynamic-legend-item-sort-order/m-p/41390#M1919</guid>
      <dc:creator>AaronPerry</dc:creator>
      <dc:date>2013-07-30T16:53:54Z</dc:date>
    </item>
  </channel>
</rss>

