<?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: How to base symbol size on zoom in graphics layer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269776#M6330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A couple of other options are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a custom renderer by extending the Renderer base class and overwriting the getSymbol() function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/renderers/Renderer.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/renderers/Renderer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Listen for extentChange events on the Map and update the symbology based on the Map's current scale.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Dec 2010 19:39:32 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2010-12-13T19:39:32Z</dc:date>
    <item>
      <title>How to base symbol size on zoom in graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269774#M6328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I may be overlooking something but here goes.&amp;nbsp; I have a graphics layer that i want to show smaller symbols when map is zoomed out past 1:10000000, medium symbol from 5000000-10000000, and large symbol when &amp;lt; 5000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the following code in my &amp;lt;renderer&amp;gt; of the graphics layer but it doesn't seem to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mainMap is the name of my map, the symbols are defined in declarations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:ClassBreaksRenderer attribute="{mainMap.scale}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:ClassBreakInfo maxValue="10000000" symbol="{smallSym}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:ClassBreakInfo maxValue="10000000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; minValue="5000000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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; symbol="{mediumSym}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:ClassBreakInfo minValue="10000000" symbol="{largeSym}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:ClassBreaksRenderer&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 13:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269774#M6328</guid>
      <dc:creator>JasonThiel</dc:creator>
      <dc:date>2010-12-13T13:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to base symbol size on zoom in graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269775#M6329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that I made a fundamental mistake.&amp;nbsp; The ClassBreaksRenderer breaks up the data based on data in the layer itself.&amp;nbsp; So trucks get a truck symbol, cars get a car symbol, bicycles get a bicycle symbol for example.&amp;nbsp; Breaks are based on layer data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like I will need to create 3 Graphics layers and use min/max Scale to determine which to use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 13:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269775#M6329</guid>
      <dc:creator>JasonThiel</dc:creator>
      <dc:date>2010-12-13T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to base symbol size on zoom in graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269776#M6330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A couple of other options are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a custom renderer by extending the Renderer base class and overwriting the getSymbol() function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/renderers/Renderer.html"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/renderers/Renderer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Listen for extentChange events on the Map and update the symbology based on the Map's current scale.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 19:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269776#M6330</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-12-13T19:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to base symbol size on zoom in graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269777#M6331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dasa.&amp;nbsp; I'll probably roll w/ option 2.&amp;nbsp; With regards to option 1, I wasn't aware that it was possible or encouraged to extend the API.&amp;nbsp; Are there instructions for doing so?&amp;nbsp; Is that all java code?&amp;nbsp; What do you do, make your updates and somehow generate a new .swc file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bear with me, i'm new to both Flex and Esri!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 12:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269777#M6331</guid>
      <dc:creator>JasonThiel</dc:creator>
      <dc:date>2010-12-14T12:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to base symbol size on zoom in graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269778#M6332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many of the classes are designed to be extensible. You can create your own layers, symbols, renderers, clusterers, tasks, etc. There's two samples of custom layers under "Extend API" at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is written in ActionScript and it can just go into your own src tree.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 15:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-base-symbol-size-on-zoom-in-graphics-layer/m-p/269778#M6332</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-12-14T15:18:16Z</dc:date>
    </item>
  </channel>
</rss>

