AnsweredAssumed Answered

How to use a multilayered symbol in arcGIS API

Question asked by Sara_EL_MALKI on May 7, 2019
Latest reply on May 7, 2019 by rscheitlin

Hello guys,

I need to add a multi layered symbol for my lines using the arcGIS API for javaScript,

like in the picture in ARCMAP

I tried to search online but didn't find anything helpful, I don't want to do this on PORTAL but instead to use it in my code to show my query results, so I need to code a multi layered symbol, I tried working with Cartographic Line symbol and adding multiple ones for my layer but it didn't work,

var lineCL = new CartographicLineSymbol({
"color": [
255,
0,
0,
255
],
"width": 1.995,
"type": "esriCLS",
"style": "esriSLSShortDashDot",
"cap": "esriLCSButt",
"join": "esriLJSRound",
"miterLimit": 30
},{
"color": [
26,
26,
26,
255
],
"width": 2.58,
"type": "esriCLS",
"style": "esriSLSShortDashDot",
"cap": "esriLCSButt",
"join": "esriLJSRound",
"miterLimit": 30
});
renderer.symbol=lineCL;

 

PLEASE I am waiting for your help.

Robert Scheitlin, GISP

Outcomes