<?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: custom SWF symbols, each with their own data feed in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-swf-symbols-each-with-their-own-data-feed/m-p/328459#M7846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Jason,&lt;BR /&gt;&lt;BR /&gt;As you noticed there are several approach to solve your issue:&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;The easiest one I would say is to directly set a different PictureMarkerSymbol to each graphic.&lt;BR /&gt;You could create a custom symbol. Look at the sample &lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Custom_Symbol/01nq00000090000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Custom_Symbol/01nq00000090000000/&lt;/A&gt;&lt;BR /&gt;And the last one is using a renderer.&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;The renderer is great to reuse the symbols and also to be able to break on several attributes of the Graphic.&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/package-detail.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/package-detail.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe the one you are looking for is the UniqueValueRenderer:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/UniqueValueRenderer.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/UniqueValueRenderer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Creating a custom Renderer is also possible by implementing IRenderer.&lt;BR /&gt;The function to implement is getSymbol(graphic:Graphic):Symbol&lt;BR /&gt;Inside your implementation you can do whatever you want to return a Symbol based on a Graphic.&lt;BR /&gt;When the layer will draw, it will go through each Graphic and call that function to get the symbol to draw with.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend first approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Apr 2013 15:34:06 GMT</pubDate>
    <dc:creator>omega_cancer</dc:creator>
    <dc:date>2013-04-21T15:34:06Z</dc:date>
    <item>
      <title>custom SWF symbols, each with their own data feed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-swf-symbols-each-with-their-own-data-feed/m-p/328457#M7844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been tasked with taking an older Flex map application and adding it's functionality to my current application that uses the ArcGIS API.&amp;nbsp; The older application displays incoming data from wind sensors (via an LDMP server) using animated SWF windsocks.&amp;nbsp; This application uses a custom component to display the SWF for each sensor on a static map image (using x,y coordinates rather than lat, long).&amp;nbsp; The windsock component contains the SWF and the necessary code for updating the SWF with new data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if anyone can suggest an approach for dealing with this.&amp;nbsp; I haven't done anything like this with the ArcGIS API before, so I'm at a bit of a loss.&amp;nbsp; My first idea was to use a PictureMarkerSymbol to display the SWF for my graphics layer, and then display all the wind sensor points within that graphics layer.&amp;nbsp; But the more I thought about it, I realized that won't work since each symbol needs it's own data feed from the LDMP server and that won't be possible if each graphic is using the same PictureMarkerSymbol.&amp;nbsp; I'm guessing I'll need to create a custom symbol that uses a renderer and/or an ager of some sort.&amp;nbsp; I haven't used these much at all so far in my experiences with the ArcGIS API, so I'm not sure how to start with this approach.&amp;nbsp; There aren't many examples for using renderers on this site, so if anyone could point me to some examples of using custom symbols and/or renderers with SWFs (preferably displaying in the same graphics layer) I would very much appreciate it.&amp;nbsp; A basic explanation of renderers and their use would be very helpful as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 12:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-swf-symbols-each-with-their-own-data-feed/m-p/328457#M7844</guid>
      <dc:creator>JasonCantrell</dc:creator>
      <dc:date>2013-04-18T12:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: custom SWF symbols, each with their own data feed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-swf-symbols-each-with-their-own-data-feed/m-p/328458#M7845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you noticed there are several approach to solve your issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;The easiest one I would say is to directly set a different PictureMarkerSymbol to each graphic.&lt;BR /&gt;You could create a custom symbol. Look at the sample &lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Custom_Symbol/01nq00000090000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Custom_Symbol/01nq00000090000000/&lt;/A&gt;&lt;BR /&gt;And the last one is using a renderer.&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;The renderer is great to reuse the symbols and also to be able to break on several attributes of the Graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/package-detail.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/package-detail.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe the one you are looking for is the UniqueValueRenderer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/UniqueValueRenderer.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/UniqueValueRenderer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a custom Renderer is also possible by implementing IRenderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The function to implement is getSymbol(graphic:Graphic):Symbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inside your implementation you can do whatever you want to return a Symbol based on a Graphic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the layer will draw, it will go through each Graphic and call that function to get the symbol to draw with.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 17:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-swf-symbols-each-with-their-own-data-feed/m-p/328458#M7845</guid>
      <dc:creator>YannCabon</dc:creator>
      <dc:date>2013-04-18T17:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: custom SWF symbols, each with their own data feed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-swf-symbols-each-with-their-own-data-feed/m-p/328459#M7846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Jason,&lt;BR /&gt;&lt;BR /&gt;As you noticed there are several approach to solve your issue:&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;The easiest one I would say is to directly set a different PictureMarkerSymbol to each graphic.&lt;BR /&gt;You could create a custom symbol. Look at the sample &lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Custom_Symbol/01nq00000090000000/"&gt;http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Custom_Symbol/01nq00000090000000/&lt;/A&gt;&lt;BR /&gt;And the last one is using a renderer.&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;The renderer is great to reuse the symbols and also to be able to break on several attributes of the Graphic.&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/package-detail.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/package-detail.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe the one you are looking for is the UniqueValueRenderer:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/UniqueValueRenderer.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/renderers/UniqueValueRenderer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Creating a custom Renderer is also possible by implementing IRenderer.&lt;BR /&gt;The function to implement is getSymbol(graphic:Graphic):Symbol&lt;BR /&gt;Inside your implementation you can do whatever you want to return a Symbol based on a Graphic.&lt;BR /&gt;When the layer will draw, it will go through each Graphic and call that function to get the symbol to draw with.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend first approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Apr 2013 15:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-swf-symbols-each-with-their-own-data-feed/m-p/328459#M7846</guid>
      <dc:creator>omega_cancer</dc:creator>
      <dc:date>2013-04-21T15:34:06Z</dc:date>
    </item>
  </channel>
</rss>

