dojo.require("esri.symbols.LineSymbol")
Description
Samples
Search for
samples that use this class.
Class hierarchy
esri.symbol.Symbol
|_esri.symbol.LineSymbol
Subclasses
Properties
Methods
Property Details
The type of symbol.
Known values: simplemarkersymbol | picturemarkersymbol | simplelinesymbol | cartographiclinesymbol | simplefillsymbol | picturefillsymbol | textsymbol
Width of line symbol in pixels.
Default value: 1
Method Details
Sets the symbol color.
Parameters:
<Color > color |
Required |
Symbol color. |
Sample:
symbol.setColor(new esri.Color([255,255,0,0.5]));
Sets the LineSymbol width.
Parameters:
<Number > width |
Required |
Width of line symbol in pixels. |
Sample:
var outline = new esri.symbol.SimpleLineSymbol().setWidth(1);
Converts object to its ArcGIS Server JSON representation.