Class: UniqueValueRendererE-mail This Topic Printable Version Give Us Feedback

Description

Class added v1.4.

A unique value renderer symbolizes groups of graphics that have matching attributes. For more information about renderers, see Symbolizing graphics with renderers.

Class hierarchy

esri.Renderer
  |_ esri.renderer.UniqueValueRenderer

Constructor

Constructor Description
esri.renderer.UniqueValueRenderer(defaultSymbol, attributeField) Creates a new UniqueValueRenderer object.

Properties

Property Type Description
attributeField String The name of the attribute field the renderer uses to match values against.
values String[] An array of values defined for the renderer.

Methods

Method Return Value Description
addValue(value, symbol) none Adds a unique value. After making changes, you must refresh the graphic.
removeValue(value) none Removes a unique value. After making changes, you must refresh the graphic.
Constructor Detail

esri.renderer.UniqueValueRenderer(defaultSymbol, attributeField)

Creates a new UniqueValueRenderer object.
Parameters:
<Symbol> defaultSymbol Required Default symbol for the renderer. This symbol is used for unmatched values.
<String> attributeField Required Attribute field renderer uses to match values.
Properties Detail

<String> attributeField

The name of the attribute field the renderer uses to match values against.

<String[]> values

An array of values defined for the renderer.
Methods Detail

addValue(value, symbol)

Adds a unique value. After making changes, you must refresh the graphic.
Return value: none
Input Parameters:
<String> value Required Value to match with.
<Symbol> symbol Required Symbol used for the value.

removeValue(value)

Removes a unique value. After making changes, you must refresh the graphic.
Return value: none
Input Parameters:
<String> value Required Value to remove.