Example : -------------- here alternative dash with red and yellow color.
How to create a Dash Line with alternative different colour in esri ? Can we achieve this using SimpleLineSymbol?
356 Views Asked by gaurav sardana At
2
There are 2 best solutions below
0
On
if anyone is looking, one solid line with dashed line on top:
new CIMSymbol({
data: {
type: "CIMSymbolReference",
symbol: {
type: "CIMLineSymbol",
symbolLayers: [
{
type: "CIMSolidStroke",
effects: [
{
type: "CIMGeometricEffectDashes",
dashTemplate: [3.75, 3.75],
lineDashEnding: "HalfPattern",
offsetAlongLine: 0,
},
],
enable: !0,
capStyle: "Butt",
joinStyle: "Round",
miterLimit: 10,
width: 1.6,
color: [253, 251, 83, 255],
},
{ type: "CIMSolidStroke", enable: !0, capStyle: "Butt", joinStyle: "Round", miterLimit: 10, width: 1.6, color: [255, 165, 83, 255] },
],
},
},
});
You can color lines according to specific conditions.