Select to view content in your preferred language

graphic layer rendering issue

591
1
08-10-2011 06:34 AM
abukhan
Occasional Contributor
Hi :

I need to render a graphic layer based on two graphic attribute fields,

one attribute will be used for class range coloring (say for attribute, INCOME_PERCENT:
when 0-25 yellow,
when 26-50 blue,
when 51-75 red)


the second attribute will be used for different style on the same
(say for attribute, DISTUNDER:
  when under_served: horizontal strip,
   when distressed: verticall strip,
   no color for either case)

Is that possible in flex api?

Thanks.

Abu
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
You could create a custom Renderer class that overrides the getSymbol() method. You could first delegate to a ClassBreaksRenderer to get a symbol with the right color and then check the other attribute and set the style.

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/renderers/Renderer.html
0 Kudos