Class: LineSymbolE-mail This Topic Printable Version Give Us Feedback

Description

Line symbols are used to draw linear features on the graphics layer.

LineSymbol has no constructor. Use SimpleLineSymbol or CartographicLineSymbol.

Class hierarchy

esri.symbol.Symbol
  |_ esri.symbol.LineSymbol

Subclasses

SimpleLineSymbol  

Properties

Property Type Description
width Number Width of line symbol in pixels.

Methods

Method Return Value Description
setWidth(width) LineSymbol Sets the LineSymbol width.
Properties Detail

<Number> width

Width of line symbol in pixels.
Default value: 1
Methods Detail

setWidth(width)

Sets the LineSymbol width.
Return value: LineSymbol
Input Parameters:
<Number> width Required Width of line symbol in pixels.
Code snippets:
var outline = new esri.symbol.SimpleLineSymbol().setWidth(1);