<< Click to Display Table of Contents >>
new sg.symbols.SimpleMarkerSymbol(style, size, outline, color)
Description
create a new SimpleMarkerSymbol object (with parameters).
Position
Symbol.js
Parameters
Parameter |
Type |
Description |
style |
String |
symbol style |
size |
Number |
symbol size |
outline |
sg.symbols.SimpleLineSymbol |
symbol outline |
color |
sg.Color |
symbol color |
Constants
Constants |
Description |
sg.symbols.SimpleMarkerSymbol.STYLE_CIRCLE |
circle marker. |
sg.symbols.SimpleMarkerSymbol.STYLE_CROSS |
cross marker. |
sg.symbols.SimpleMarkerSymbol.STYLE_DIAMOND |
diamond marker. |
sg.symbols.SimpleMarkerSymbol.STYLE_PATH |
marker defined by a SVG path string. |
sg.symbols.SimpleMarkerSymbol.STYLE_SQUARE |
square marker. |
sg.symbols.SimpleMarkerSymbol.STYEL_X |
diagonal cross. |
Properties
Property |
Type |
Description |
angle |
Number |
The angle of the marker. |
color |
sg.Color |
Symbol color |
outline |
sg.symbols.SimpleLineSymbol |
Outline of the marker. |
path |
String |
SVG Path of the icon |
size |
Number |
Size of the marker in pixels. |
style |
String |
The marker style. |
type |
String |
The type of symbol |
xoffset |
Number |
The offset on the x-axis in pixels. |
yoffset |
Number |
The offset on the Y-axis in pixels. |
Methods
Methods |
Type |
Description |
|||||||||
setColor(color) |
sg.Color |
define symbol color.
|
|||||||||
setAngle(angle) |
Number |
define the rotation angle.
|
|||||||||
setSize(size) |
Number |
define symbol size.
|
|||||||||
setOffset(x, y) |
Number |
define symbol offset in x and y direction.
|
|||||||||
setOutline(outline) |
sg.symbols.SimpleLineSymbol |
define symbol outline.
|
|||||||||
setPath(path) |
String |
define SVG path.
|
|||||||||
setStyle(style) |
String |
define symbol style.
|
|||||||||
toXml(innerText) |
innerText:String Returns:String
|
convert to XML string
Returns:
|
Example
|
©2015 Supergeo Technologies Inc.