| Package | com.esri.ags.renderers |
| Class | public class UniqueValueRenderer |
| Inheritance | UniqueValueRenderer Renderer Object |
| Since : | ArcGIS API for Flex 1.2 |
Default MXML Propertyinfos
See also
| Property | Defined By | ||
|---|---|---|---|
| attribute : String Deprecated Since 2.5: Please Use field
The name of the attribute field to check for 'value'. | UniqueValueRenderer | ||
| attribute2 : String Deprecated Since 2.5: Please Use field2
Second attribute (if any). | UniqueValueRenderer | ||
| attribute3 : String Deprecated Since 2.5: Please Use field3
Third attribute (if any). | UniqueValueRenderer | ||
| attributeDelimiter : String Deprecated Since 2.5: Please Use fieldDelimiter
Attribute delimiter between first and second, and second and third attributes. | UniqueValueRenderer | ||
| defaultLabel : String
The default label for this unique value. | UniqueValueRenderer | ||
| defaultSymbol : Symbol
The default symbol to use (if value is not in any of the UniqueValueInfo infos). | UniqueValueRenderer | ||
| field : String
The name of the attribute field to check for 'value'. | UniqueValueRenderer | ||
| field2 : String
Second attribute field (if any). | UniqueValueRenderer | ||
| field3 : String
Third attribute field (if any). | UniqueValueRenderer | ||
| fieldDelimiter : String
Attribute delimiter between first and second, and second and third attributes. | UniqueValueRenderer | ||
| infos : Array
Array of UniqueValueInfo. | UniqueValueRenderer | ||
| Method | Defined By | ||
|---|---|---|---|
UniqueValueRenderer(field:String = null, defaultSymbol:Symbol = null, infos:Array = null)
Creates a new UniqueValueRenderer object. | UniqueValueRenderer | ||
![]() |
Subclasses must override this method. | Renderer | |
| attribute | property |
attribute:StringThe name of the attribute field to check for 'value'.
public function get attribute():String public function set attribute(value:String):void| attribute2 | property |
attribute2:StringSecond attribute (if any).
public function get attribute2():String public function set attribute2(value:String):void| attribute3 | property |
attribute3:StringThird attribute (if any).
public function get attribute3():String public function set attribute3(value:String):void| attributeDelimiter | property |
attributeDelimiter:StringAttribute delimiter between first and second, and second and third attributes.
public function get attributeDelimiter():String public function set attributeDelimiter(value:String):void| defaultLabel | property |
public var defaultLabel:StringThe default label for this unique value.
| defaultSymbol | property |
public var defaultSymbol:SymbolThe default symbol to use (if value is not in any of the UniqueValueInfo infos).
| field | property |
public var field:String| Since : | ArcGIS API for Flex 2.5 (replacing 'attribute') |
The name of the attribute field to check for 'value'.
| field2 | property |
public var field2:String| Since : | ArcGIS API for Flex 2.5 (replacing 'attribute2') |
Second attribute field (if any).
| field3 | property |
public var field3:String| Since : | ArcGIS API for Flex 2.5 (replacing 'attribute3') |
Third attribute field (if any).
| fieldDelimiter | property |
public var fieldDelimiter:String| Since : | ArcGIS API for Flex 2.5 (replacing 'attributeDelimiter') |
Attribute delimiter between first and second, and second and third attributes.
The default value is "" (empty string).
| infos | property |
public var infos:ArrayArray of UniqueValueInfo.
See also
| UniqueValueRenderer | () | Constructor |
public function UniqueValueRenderer(field:String = null, defaultSymbol:Symbol = null, infos:Array = null)Creates a new UniqueValueRenderer object.
Parametersfield:String (default = null) — The name of the attribute field to check for 'value'.
| |
defaultSymbol:Symbol (default = null) — The default symbol to use (if value is not in any of the UniqueValueInfo infos).
| |
infos:Array (default = null) — Array of UniqueValueInfo.
|
<esri:UniqueValueRenderer field="ZONING">
<esri:UniqueValueInfo value="Residential" symbol="{rFill}"/>
<esri:UniqueValueInfo value="Industrial" symbol="{gFill}"/>
<esri:UniqueValueInfo value="Commercial" symbol="{bFill}"/>
</esri:UniqueValueRenderer>var uniqueValuerenderer:UniqueValueRenderer = new UniqueValueRenderer(); uniqueValuerenderer.field = "ZONING"; var uniqueValueInfos:Array = []; uniqueValueInfos.push(new UniqueValueInfo(rFill, "Residential")); uniqueValueInfos.push(new UniqueValueInfo(gFill, "Industrial")); uniqueValueInfos.push(new UniqueValueInfo(bFill, "Commercial")); uniqueValuerenderer.infos = uniqueValueInfos; graphicsLayer.renderer = uniqueValuerenderer;