Outline in PolyLine

Topics: General Topics
May 11, 2007 at 2:45 PM
Hello,
how can i put a Outline around a PolyLine?

This code not working:

SolidBrush shadowBrush = new SolidBrush(Color.Salmon);
vLayer.Style.Outline = System.Drawing.Pens.Black;
vLayer.Style.EnableOutline = true;

vLayer.Style.Line.Brush = shadowBrush;
vLayer.Style.Line.Width = 6;


I want create a map with streets and the streets are lines , but i can´t create the lines(streets)
like :

http://www.codeplex.com/SharpMap/Project/FileDownload.aspx?DownloadId=825


Thanks
May 14, 2007 at 7:44 AM
I suppose in the example streets are polygons, so they can be outlined... if streets are lines, no outline is possible... you could duplicate the layer and use 2 different pen widths to have a similar style, but don't know what will be effects about performance if the streets layer is too big!
May 14, 2007 at 12:12 PM
Hello Blade,

thanks for your help again.... :)