<< Click to Display Table of Contents >>
new sg.symbols.SimpleFillSymbol(style, outline, color)
Description
create a new SimpleFillSymbol object (with parameters).
Position
Symbol.js
Parameters
Parameter |
Type |
Description |
style |
String |
symbol style |
color |
sg.Color |
symbol color |
outline |
sg.symbols.LineSymbol |
symbol outline |
Constants
Constants |
Description |
sg.symbols.SimpleFillSymbol.STYLE_BACKWARD_DIAGONAL |
backward diagonal fill. |
sg.symbols.SimpleFillSymbol.STYLE_CROSS |
cross fill. |
sg.symbols.SimpleFillSymbol.STYLE_DIAGONAL_CROSS |
diagonal cross fill. |
sg.symbols.SimpleFillSymbol.STYLE_FORWARD_DIAGONAL |
forward diagonal fill |
sg.symbols.SimpleFillSymbol.STYLE_HORIZONTAL |
horizontal fill |
sg.symbols.SimpleFillSymbol.STYLE_NULL |
empty fill |
sg.symbols.SimpleFillSymbol.STYLE_SOLID |
solid fill |
sg.symbols.SimpleFillSymbol.STYLE_VERTICAL |
vertical fill |
Properties
Properties |
Type |
Description |
color |
sg.Color |
Symbol color |
style |
String |
The fill style |
outline |
sg.symbols.LineSymbol |
Outline of the polygon |
type |
String |
The type of the symbol |
Methods
Methods |
Type |
Description |
||||||||
setColor(color) |
sg.Color |
define symbol color.
|
||||||||
setOutline(outline) |
sg.symbols.LineSymbol |
define symbol outline.
|
||||||||
setStyle(style) |
String |
define symbol style.
|
||||||||
toXml(innerText) |
innerText:String Returns:String |
convert to XML string
Returns:
|
Example
|
©2015 Supergeo Technologies Inc.