<< Click to Display Table of Contents >>

new sg.renderers.UniqueValueRenderer(defaultSymbol, attributeField, attributeField2, attributeField3, fieldDelimeter)
Description
建立一個UniqueValueRenderer 物件。
Position
Renderer.js
Parameters
| Parameter | Type | Description | 
| attributeField | String | 對應某特定數值的屬性欄位。 | 
| attributeField2 | String | 對應某特定數值的屬性欄位。 | 
| attributeField3 | String | 對應某特定數值的屬性欄位。 | 
| defaultSymbol | sg.symbols.Symbol | 預設符號。 | 
Properties
| Properties | Type | Description | |||||||||||||||
| attributeField | String | 對應某特定數值的屬性欄位。 | |||||||||||||||
| attributeField2 | String | 對應某特定數值的屬性欄位。 | |||||||||||||||
| attributeField3 | String | 對應某特定數值的屬性欄位。 | |||||||||||||||
| colorInfo | Object | 符號顏色設定 
 | |||||||||||||||
| defaultSymbol | sg.symbols.Symbol | 預設符號。(可以不預設) | |||||||||||||||
| infos | Array.<Object> | 分級數值陣列 | |||||||||||||||
| OpacityInfo | Object | 符號透明度設定 
 | |||||||||||||||
| rotationInfo | Object | 符號旋轉設定 
 | |||||||||||||||
| sizeInfo | Object | 符號大小設定 
 | 
Methods
| Methods | Type | Description | ||||||||||
| addValue(value) | Object | 加入獨立數值 
 | ||||||||||
| getColor(graphic) | graphic:sg.Graphic Returns:sg.Color | 取得Graphic的符號顏色。 
 Returns: 
 | ||||||||||
| getOpacity(graphic) | graphic:sg.Graphic Returns:Number | 取得Graphic的符號透明度 
 Returns: 
 | ||||||||||
| getRotationAngle(graphic) | graphic:sg.Graphic Returns:Number | 取得Graphic的符號旋轉角度。 
 Returns: 
 | ||||||||||
| getSize(graphic) | graphic:sg.Graphic Returns:Number | 取得Graphic的符號大小。 
 Returns: 
 | ||||||||||
| removeValue(value) | Object | 移除獨立數值 
 | ||||||||||
| setColorInfo(info) | Object | 設定符號顏色。 
 | ||||||||||
| setOpacityInfo(info) | Object | 設定符號透明度 
 | ||||||||||
| setRotationInfo(info) | Object | 設定符號旋轉角度。 
 | ||||||||||
| setSizeInfo(info) | Object | 設定符號大小 
 | ||||||||||
| toXml() | Returns: String | 轉傳為XML字串 Returns: 
 | 
Example
| 
 | 
©2015 Supergeo Technologies Inc.