Page 1 of 1

border color/width of teepolygon in mapseries

Posted: Tue Feb 07, 2006 7:19 pm
by 9237980
I am successfully adding polygons to a map series at run-time in the same way as in your example code. I can set the color of the inside of the polygons at run-time but not the border color. The design-time editor allows the changing of the individual polygon border properties (color,width,style) but there does not appear to be run-time access to these properties. I tried changing the polygon Pen properties but this doesn't do anything. What am I missing?

Posted: Mon Feb 13, 2006 8:55 am
by Pep
Hi,

you can do:

Code: Select all

Series1.Pen.Visible:=false;
Series1.Polygon[0].ParentPen:=false;
Series1.Polygon[0].Pen.Color:=clyellow;
Series1.Polygon[1].ParentPen:=false;
Series1.Polygon[1].Pen.Color:=clred;