<?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 Simple Legend Problem in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666722#M14968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to create a simple legend that shows the layers and symbology from a Dynamic Map Service.&amp;nbsp; When I use code from the ESRI legend component sample the legend appears as an icon with a red circle crossed out.&amp;nbsp; Attached is the icon, below is my code. Any ideas why this is happening?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageTitle="Legend Component"&amp;gt;
 
 &amp;lt;esri:Map id="myMap"&amp;gt;
&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:Extent xmin="-10753431" ymin="4624151" xmax="-10737799" ymax="4635884"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="102100"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Extent&amp;gt;
&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer id="baseLayers"
&amp;nbsp;&amp;nbsp; url="http://arc-srv-02/ArcGIS/rest/services/Flex_Services/Scott_Base_Layer_Flex/MapServer/"&amp;gt;
&amp;nbsp; &amp;lt;/esri:ArcGISDynamicMapServiceLayer&amp;gt;
&amp;nbsp; 
 &amp;lt;/esri:Map&amp;gt;
 
 &amp;lt;esri:Legend id="myLegend"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="250" height="100%"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers="{[ baseLayers ]}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map="{myMap}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; respectCurrentMapScale="true"/&amp;gt;
 
&amp;lt;/s:Application&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2011 19:11:19 GMT</pubDate>
    <dc:creator>TomJansen</dc:creator>
    <dc:date>2011-06-14T19:11:19Z</dc:date>
    <item>
      <title>Simple Legend Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666722#M14968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to create a simple legend that shows the layers and symbology from a Dynamic Map Service.&amp;nbsp; When I use code from the ESRI legend component sample the legend appears as an icon with a red circle crossed out.&amp;nbsp; Attached is the icon, below is my code. Any ideas why this is happening?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://www.esri.com/2008/ags"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageTitle="Legend Component"&amp;gt;
 
 &amp;lt;esri:Map id="myMap"&amp;gt;
&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:Extent xmin="-10753431" ymin="4624151" xmax="-10737799" ymax="4635884"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="102100"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Extent&amp;gt;
&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&amp;nbsp; 
&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer id="baseLayers"
&amp;nbsp;&amp;nbsp; url="http://arc-srv-02/ArcGIS/rest/services/Flex_Services/Scott_Base_Layer_Flex/MapServer/"&amp;gt;
&amp;nbsp; &amp;lt;/esri:ArcGISDynamicMapServiceLayer&amp;gt;
&amp;nbsp; 
 &amp;lt;/esri:Map&amp;gt;
 
 &amp;lt;esri:Legend id="myLegend"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="250" height="100%"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layers="{[ baseLayers ]}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map="{myMap}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; respectCurrentMapScale="true"/&amp;gt;
 
&amp;lt;/s:Application&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 19:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666722#M14968</guid>
      <dc:creator>TomJansen</dc:creator>
      <dc:date>2011-06-14T19:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Legend Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666723#M14969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe you need server 10 to have the legend working properly or you will get the cross over layer symbol..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 21:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666723#M14969</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2011-06-14T21:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Legend Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666724#M14970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response...though I am using server 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 22:34:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666724#M14970</guid>
      <dc:creator>TomJansen</dc:creator>
      <dc:date>2011-06-14T22:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Legend Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666725#M14971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;double check your spatial reference&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 13:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666725#M14971</guid>
      <dc:creator>R__CraigHolmes</dc:creator>
      <dc:date>2011-07-08T13:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Legend Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666726#M14972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;double check your spatial reference&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check from the service directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://arc-srv-02/ArcGIS/rest/services/"&gt;http://arc-srv-02/ArcGIS/rest/services/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and you should be able to see your legend. If you can see it there, you can generate it in your app..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 14:19:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666726#M14972</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2011-07-08T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Legend Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666727#M14973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you set the visible layers for the service?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 14:50:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666727#M14973</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2011-07-08T14:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Legend Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666728#M14974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just wondering if you ever resolved this issue?&amp;nbsp; I am having the same problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 15:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666728#M14974</guid>
      <dc:creator>MatthewZetterholm</dc:creator>
      <dc:date>2011-11-29T15:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Legend Problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666729#M14975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure you are running server 10 and you can see Legend info in your map rest service. The legend is being drawn from the rest services&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2011 17:25:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/simple-legend-problem/m-p/666729#M14975</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2011-11-29T17:25:01Z</dc:date>
    </item>
  </channel>
</rss>

