A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/en/javascript/jsapi/linesymbol-amd.html below:

LineSymbol | API Reference | ArcGIS API for JavaScript 3.46

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4