How to change the color of the Geometry object

Oct 31, 2013 at 4:59 PM
Hi

Is there any way that I can draw a road(Line String) or other Geometry Object with the color.

Thnks
Oct 31, 2013 at 5:58 PM
you can set a style with a line color on a layer:
layer.Style = new VectorStyle { Line = new Pen(Color.Orange)};
or on a Feature:
feature.Styles.Add(new VectorStyle { Line = new Pen(Color.Violet, 5) });