<?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 Drawing marker symbols in a UIComponent now works sporadically in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107770#M2445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally moved to Flex 4 and the 2.5 API...I have a function that grabs all the graphics from a particular point, picks out the objects with a point geometry, and displays the graphic's symbol and attribute information in the map's info window. The code to get and display the graphic is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function createSwatchFromGraphic(g:Graphic, m:Map):UIComponent { &amp;nbsp; var swatch:UIComponent = new UIComponent; &amp;nbsp; var sym:Symbol = g.symbol; &amp;nbsp; sym.draw(swatch, new MapPoint(), null, m); &amp;nbsp; swatch.x = swatch.y = 0;&amp;nbsp; &amp;nbsp; return swatch; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure I got this code from one of Master Scheitlin's posts :o, and it's always worked just fine. Now I find it only works if the current map extent includes the original map extent's center. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2012 13:19:05 GMT</pubDate>
    <dc:creator>TyroneLigon</dc:creator>
    <dc:date>2012-04-13T13:19:05Z</dc:date>
    <item>
      <title>Drawing marker symbols in a UIComponent now works sporadically</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107770#M2445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally moved to Flex 4 and the 2.5 API...I have a function that grabs all the graphics from a particular point, picks out the objects with a point geometry, and displays the graphic's symbol and attribute information in the map's info window. The code to get and display the graphic is the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function createSwatchFromGraphic(g:Graphic, m:Map):UIComponent { &amp;nbsp; var swatch:UIComponent = new UIComponent; &amp;nbsp; var sym:Symbol = g.symbol; &amp;nbsp; sym.draw(swatch, new MapPoint(), null, m); &amp;nbsp; swatch.x = swatch.y = 0;&amp;nbsp; &amp;nbsp; return swatch; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure I got this code from one of Master Scheitlin's posts :o, and it's always worked just fine. Now I find it only works if the current map extent includes the original map extent's center. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 13:19:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107770#M2445</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2012-04-13T13:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing marker symbols in a UIComponent now works sporadically</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107771#M2446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tyrone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Now that you have moved up in API's you should switch to use the symbols.createSwatch function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt; as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 13:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107771#M2446</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-04-13T13:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing marker symbols in a UIComponent now works sporadically</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107772#M2447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The good news: that's a great function to have and I'm glad it's in the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The bad news: the majority of my marker symbology are composite symbols comprised of text symbols and picture marker symbols that are actually .swf files, and as such they're not supported in the createSwatch function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 14:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107772#M2447</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2012-04-13T14:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing marker symbols in a UIComponent now works sporadically</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107773#M2448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tyrone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; It has been a while since I have messed with symbol.draw but see if setting the mapPoint to the graphics geomerty in the draw function (since you are only dealing with points).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 14:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107773#M2448</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-04-13T14:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing marker symbols in a UIComponent now works sporadically</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107774#M2449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;JACKPOT!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Robert...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 14:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/drawing-marker-symbols-in-a-uicomponent-now-works/m-p/107774#M2449</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2012-04-13T14:50:31Z</dc:date>
    </item>
  </channel>
</rss>

