<< Click to Display Table of Contents >>
new sg.renderers.SimpleRenderer(defaultSymbol)
Description
Create a SimpleRenderer object.
Position
Randerer.js
Parameters
Parameter |
Type |
Description |
symbol |
sg.symbols.Symbol |
simple render symbol |
Properties
Property |
Type |
Description |
|||||||||||||||
colorInfo |
Object |
symbol color
|
|||||||||||||||
defaultSymbol |
sg.symbols.Symbol |
default symbol |
|||||||||||||||
opacityInfo |
Object |
symbol transparency
|
|||||||||||||||
rotationInfo |
Object |
symbol rotation settings:
|
|||||||||||||||
sizeInfo |
Object |
symbol size settings:
|
|||||||||||||||
symbol |
sg.symbols.Symbol |
symbol |
Methods
Methods |
Type |
Description |
||||||||||
getColor(graphic) |
graphic:sg.Graphic Returns:sg.Color |
Return graphic color.
Returns:
|
||||||||||
getOpacity(graphic) |
graphic:sg.Graphic Returns:Number |
Return the graphic transparency.
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:
|
||||||||||
getSymbol(graphic) |
graphic:sg.Graphic Returns:sg.symbols.Symbol |
return symbol.
Returns:
|
||||||||||
setColorInfo(info) |
Object |
set color information
|
||||||||||
setOpacityInfo(info) |
Object |
Define symbol transparency
|
||||||||||
setRotationInfo(info) |
Object |
Define symbol rotation angle
|
||||||||||
setSizeInfo(info) |
Object |
Define symbol symbol size
|
||||||||||
toXml() |
Returns: String |
convert to XML string Returns:
|
Example
|
©2015 Supergeo Technologies Inc.