Hide Table of Contents
esri
esri/arcgis
esri/dijit
esri/dijit/analysis
esri/dijit/geoenrichment
esri/dijit/geoenrichment/ReportPlayer
esri/geometry
esri/layers
esri/renderers
esri/symbols
esri/tasks
esri/tasks/datareviewer
esri/tasks/geoenrichment
esri/tasks/locationproviders
require(["esri/symbols/LineSymbol"], function(LineSymbol) { /* code goes here */ });
esri/symbols/Symbol |_esri/symbols/LineSymbol
| Name | Type | Summary |
|---|---|---|
| color | Color | Symbol color. |
| type | String | The type of symbol. |
| width | Number | Width of line symbol in pixels. |
| Name | Return type | Summary |
|---|---|---|
| setColor(color) | Symbol | Sets the symbol color. |
| setWidth(width) | LineSymbol | Sets the LineSymbol width. |
| toJson() | Object | Converts object to its ArcGIS Server JSON representation. |
Color> colorString> typesimplemarkersymbol | picturemarkersymbol | simplelinesymbol | cartographiclinesymbol | simplefillsymbol | picturefillsymbol | textsymbolSymbol<> color |
Required | Symbol color. |
require([
"esri/Color", ...
], function(Color, ... ) {
symbol.setColor(new Color([255,255,0,0.5]));
...
});
LineSymbol<> width |
Required | Width of line symbol in pixels. |
require([
"esri/symbols/SimpleLineSymbol", ...
], function(SimpleLineSymbol, ... ) {
var outline = new SimpleLineSymbol().setWidth(1);
...
});