require(["esri/symbols/LineSymbol"], function(LineSymbol) { /* code goes here */ });
Description
Samples
Search for
samples that use this class.
Class hierarchy
esri/symbols/Symbol
|_esri/symbols/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:
require([
"esri/Color", ...
], function(Color, ... ) {
symbol.setColor(new Color([255,255,0,0.5]));
...
});
Sets the LineSymbol width.
Parameters:
<Number > width |
Required |
Width of line symbol in pixels. |
Sample:
require([
"esri/symbols/SimpleLineSymbol", ...
], function(SimpleLineSymbol, ... ) {
var outline = new SimpleLineSymbol().setWidth(1);
...
});
Converts object to its ArcGIS Server JSON representation.