<?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: Viewer 3.0 Legend Widget Showing all layers in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230121#M7113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for reporting this. Looks like a bug with the Legend component. This happens for any Dynamic Map Service layer with atleast one sublayer visible. As a workaround for now, if you are using the un-compiled viewer, you can use the updated Legend Skin(attached) for the Legend component used in the Legend Widget.&lt;BR /&gt;&lt;BR /&gt;add this to LegendWidget.mxml and make sure to copy the skin file to widgets/legend folder&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;fx:Style&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace s "library://ns.adobe.com/flex/spark";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace mx "library://ns.adobe.com/flex/halo";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace esri "http://www.esri.com/2008/ags";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace viewer "com.esri.viewer.*";
&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; esri|Legen
&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; skin-class: ClassReference("widgets.Legend.LegendWidgetLegendSkin");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Style&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help. When I try to use the attached LegendWidgetSkin.mxml getting errors because it can't resolve "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Embed(source="../../../../assets/skins/loader.swf")]" any ideas where I should point this to? I'm guessing my environment is setup different than yours?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Never mind. I was able to locate the resources in the api download. I'd only copied the main flex api into my project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 11:11:44 GMT</pubDate>
    <dc:creator>DerrickMartin</dc:creator>
    <dc:date>2021-12-11T11:11:44Z</dc:date>
    <item>
      <title>Viewer 3.0 Legend Widget Showing all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230118#M7110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the new 3.0 flex viewer and having some issues with the Legend Widget. It appears to be loading all layers in my configuration whether they are turned on or not. This happens when the widget first loads. If I then turn a layer on and back off, it is properly removed from the legend. But, as it stands now, the widget takes forever to load as it's building the legend for 50+ layers that are set as visible="false" in the config. File. Anyone else seeing this behavior.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 19:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230118#M7110</guid>
      <dc:creator>DerrickMartin</dc:creator>
      <dc:date>2012-06-15T19:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Viewer 3.0 Legend Widget Showing all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230119#M7111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reporting this. Looks like a bug with the Legend component. This happens for any Dynamic Map Service layer with atleast one sublayer visible. As a workaround for now, if you are using the un-compiled viewer, you can use the updated Legend Skin(attached) for the Legend component used in the Legend Widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;add this to LegendWidget.mxml and make sure to copy the skin file to widgets/legend folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;fx:Style&amp;gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace s "library://ns.adobe.com/flex/spark"; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace mx "library://ns.adobe.com/flex/halo"; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace esri "http://www.esri.com/2008/ags"; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace viewer "com.esri.viewer.*"; &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; esri|Legen &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; skin-class: ClassReference("widgets.Legend.LegendWidgetLegendSkin"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Style&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 21:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230119#M7111</guid>
      <dc:creator>SarthakDatt</dc:creator>
      <dc:date>2012-06-15T21:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Viewer 3.0 Legend Widget Showing all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230120#M7112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Using the new 3.0 flex viewer and having some issues with the Legend Widget. It appears to be loading all layers in my configuration whether they are turned on or not. This happens when the widget first loads. If I then turn a layer on and back off, it is properly removed from the legend. But, as it stands now, the widget takes forever to load as it's building the legend for 50+ layers that are set as visible="false" in the config. File. Anyone else seeing this behavior.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am experiencing same problem....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 22:00:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230120#M7112</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2012-06-15T22:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Viewer 3.0 Legend Widget Showing all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230121#M7113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for reporting this. Looks like a bug with the Legend component. This happens for any Dynamic Map Service layer with atleast one sublayer visible. As a workaround for now, if you are using the un-compiled viewer, you can use the updated Legend Skin(attached) for the Legend component used in the Legend Widget.&lt;BR /&gt;&lt;BR /&gt;add this to LegendWidget.mxml and make sure to copy the skin file to widgets/legend folder&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;fx:Style&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace s "library://ns.adobe.com/flex/spark";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace mx "library://ns.adobe.com/flex/halo";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace esri "http://www.esri.com/2008/ags";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace viewer "com.esri.viewer.*";
&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; esri|Legen
&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; skin-class: ClassReference("widgets.Legend.LegendWidgetLegendSkin");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Style&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help. When I try to use the attached LegendWidgetSkin.mxml getting errors because it can't resolve "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Embed(source="../../../../assets/skins/loader.swf")]" any ideas where I should point this to? I'm guessing my environment is setup different than yours?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Never mind. I was able to locate the resources in the api download. I'd only copied the main flex api into my project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230121#M7113</guid>
      <dc:creator>DerrickMartin</dc:creator>
      <dc:date>2021-12-11T11:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Viewer 3.0 Legend Widget Showing all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230122#M7114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Will there be any fix for the FV 3.0 complied-verison users?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 18:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230122#M7114</guid>
      <dc:creator>JosephAccardi</dc:creator>
      <dc:date>2012-06-18T18:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Viewer 3.0 Legend Widget Showing all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230123#M7115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I still don't know how to fix the unable to resolve '../../../../assets/skins/loader.swf' for transcoding error... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you point me to the right direction? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 21:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230123#M7115</guid>
      <dc:creator>deleted-user-90dJTUzLc1x8</dc:creator>
      <dc:date>2012-07-17T21:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Viewer 3.0 Legend Widget Showing all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230124#M7116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi guys! &lt;BR /&gt;I still don't know how to fix the unable to resolve '../../../../assets/skins/loader.swf' for transcoding error... &lt;BR /&gt;Could you point me to the right direction? &lt;BR /&gt;Thanks!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just copied the assets/skins folder from the api samples download into my project. Then changed the references to point to '../../assets/skins/loader.swf' for each item in the new skin file... This fixed it for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 15:35:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230124#M7116</guid>
      <dc:creator>DerrickMartin</dc:creator>
      <dc:date>2012-08-24T15:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Viewer 3.0 Legend Widget Showing all layers</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230125#M7117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for reporting this. Looks like a bug with the Legend component. This happens for any Dynamic Map Service layer with atleast one sublayer visible. As a workaround for now, if you are using the un-compiled viewer, you can use the updated Legend Skin(attached) for the Legend component used in the Legend Widget.&lt;BR /&gt;&lt;BR /&gt;add this to LegendWidget.mxml and make sure to copy the skin file to widgets/legend folder&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct me if i'm wrong, but I believe there was a typo in the code segment that was pasted above.&amp;nbsp; It didn't work for me until i added the "d" to 'esri|Legen&lt;/SPAN&gt;&lt;STRONG&gt;d&lt;/STRONG&gt;&lt;SPAN&gt;'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;fx:Style&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace s "library://ns.adobe.com/flex/spark";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace mx "library://ns.adobe.com/flex/halo";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace esri "http://www.esri.com/2008/ags";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @namespace viewer "com.esri.viewer.*";
&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; esri|Legend
&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; skin-class: ClassReference("widgets.Legend.LegendWidgetLegendSkin");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fx:Style&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Also, thanks Derrik for posting about the "../../assets/skins" problem.&amp;nbsp; I used your method and it works for me now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:11:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/viewer-3-0-legend-widget-showing-all-layers/m-p/230125#M7117</guid>
      <dc:creator>BrettElliot</dc:creator>
      <dc:date>2021-12-11T11:11:47Z</dc:date>
    </item>
  </channel>
</rss>

