<< Click to Display Table of Contents >>
new sg.renderers.UniqueValueRenderer(defaultSymbol, attributeField, attributeField2, attributeField3, fieldDelimeter)
Description
Create a UniqueValueRenderer object.
Position
Randerer.js
Parameters
Parameter |
Type |
Description |
attributeField |
String |
An attribute field renderer which matches certain values. |
attributeField2 |
String |
An attribute field renderer which matches certain values. |
attributeField3 |
String |
An attribute field renderer which matches certain values. |
defaultSymbol |
sg.symbols.Symbol |
Default symbol. |
Properties
Property |
Type |
Description |
|||||||||||||||
attributeField |
String |
An attribute field renderer which matches certain values. |
|||||||||||||||
attributeField2 |
String |
An attribute field renderer which matches certain values. |
|||||||||||||||
attributeField3 |
String |
An attribute field renderer which matches certain values. |
|||||||||||||||
colorInfo |
Object |
symbol color
|
|||||||||||||||
defaultSymbol |
sg.symbols.Symbol |
Default symbol. |
|||||||||||||||
infos |
Array.<Object> |
Array of unique values |
|||||||||||||||
opacityInfo |
Object |
symbol transparency
|
|||||||||||||||
rotationInfo |
Object |
symbol rotation settings:
|
|||||||||||||||
sizeInfo |
Object |
symbol size settings:
|
Methods
Methods |
Type |
Description |
||||||||||
addValue(value) |
Object |
Add a unique value and a matching symbol.
|
||||||||||
getOpacity(graphic) |
graphic:sg.Graphic Returns:Number |
Return graphic transparency.
Returns:
|
||||||||||
getColor(graphic) |
graphic:sg.Graphic Returns:sg.Color |
Return graphic color.
Returns:
|
||||||||||
getRotationAngle(graphic) |
graphic:sg.Graphic Returns:Number |
Return graphic rotation angle in degrees.
Returns:
|
||||||||||
getSize(graphic) |
graphic:sg.Graphic Returns:Number |
Return graphic symbol size in pixels.
Returns:
|
||||||||||
removeValue(value) |
None |
Remove a unique value.
|
||||||||||
setColorInfo(info) |
Object |
Define the color Info.
|
||||||||||
setRotationInfo(info) |
Object |
Define rotation angle for the renderer.
|
||||||||||
setOpacityInfo(info) |
Object |
Define symbol transparency
|
||||||||||
setSizeInfo(info) |
Object |
Define symbol size
|
||||||||||
toXml() |
Returns: String |
convert XML string Returns:
|
Example
|
©2015 Supergeo Technologies Inc.