<?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: Create a legend from the real symbol object in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215892#M5068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Robert, it works perfectly !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a good idea to use the method draw() on a symbol. It can be used to do all kind of drawing outside of a map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jul 2010 07:19:19 GMT</pubDate>
    <dc:creator>Ganael_Jatteau</dc:creator>
    <dc:date>2010-07-23T07:19:19Z</dc:date>
    <item>
      <title>Create a legend from the real symbol object</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215890#M5066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use an Esri symbol object to create a legend (basically display some small rectangles with a border and a fill color). I'm wandering why this solution doesn't work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var vgroup:VGroup = new VGroup();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for each(var symbol:Symbol in symbols)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ring:Array = new Array();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ring.push(new MapPoint(0,0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ring.push(new MapPoint(0,5));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ring.push(new MapPoint(5,5));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ring.push(new MapPoint(5,0));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var geometry:Geometry = new Polygon(ring);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic:Graphic = new Graphic(geometry, symbol);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vgroup.addElement(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some elements are added into the vgroup but it appears empty. In other words, how can I display a com.esri.ags.Graphic outside of a Map ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 13:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215890#M5066</guid>
      <dc:creator>Ganael_Jatteau</dc:creator>
      <dc:date>2010-07-22T13:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create a legend from the real symbol object</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215891#M5067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ganael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Look at this thread &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=286171&amp;amp;mc=2#msgid890328"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2421&amp;amp;t=286171&amp;amp;mc=2#msgid890328&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am telling someone how to get an image from a symbol but you could skip that portion and just add the uicomponent to your vbox.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 15:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215891#M5067</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-07-22T15:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a legend from the real symbol object</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215892#M5068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Robert, it works perfectly !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a good idea to use the method draw() on a symbol. It can be used to do all kind of drawing outside of a map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 07:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215892#M5068</guid>
      <dc:creator>Ganael_Jatteau</dc:creator>
      <dc:date>2010-07-23T07:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create a legend from the real symbol object</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215893#M5069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ganael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; In the 2.0 API there is a createSwatch method that is made just for what you are doing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 10:59:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/create-a-legend-from-the-real-symbol-object/m-p/215893#M5069</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-07-23T10:59:59Z</dc:date>
    </item>
  </channel>
</rss>

