How to add line symbol with single-sided outline?

538
2
Jump to solution
05-16-2022 11:11 AM
mmqn
by
New Contributor

Is there a way to render a line symbol that has an outline on only one side?

I know a workaround for a line with an outline on both sides could be achieved by rendering two overlapping lines with one below the other at a greater width, but a one-sided outline seems trickier.

This is a feature that is supported by other ArcGIS products, but it doesn't seem there's a way to do it for the JS API. Attached screenshot is how it should look, taken from ArcGIS Enterprise.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
AnneFitz
Esri Regular Contributor

You can use a CIMSymbol to do this - here's an example: https://codepen.io/annefitz/pen/BaYpqKd

 

View solution in original post

2 Replies
AnneFitz
Esri Regular Contributor

You can use a CIMSymbol to do this - here's an example: https://codepen.io/annefitz/pen/BaYpqKd

 

mmqn
by
New Contributor

This is great; thank you so much!

For posterity, the solution was to add a second line in the same layer with a CIMGeometricEffectOffset effect.

0 Kudos