I have created more than one polyline, each being a distinct segment. Each lines is added separately to a single graphics layer. My code looks like the following:
foreach (var line in polylineList)
{
Graphic graphic = new Graphic { Symbol = defaultLineSymbol, Geometry = line };
graphicsLayer.Graphics.Add(graphic);
}
When the map is rendered, all of the lines are connected together as if they were one single line.
Is there special code that needs to be added to ensure each segment is independent of one another? Maybe there a special line terminator that needs to be appled to each segment?
How do I ensure each segment is independent of the others? Any assistance will be helpful.
Thank you.
-Greg Edwards