Sep
13
Written by:
Soul Solutions
Wednesday, 13 September 2006
A nice new feature in Virtual Earth is the addition of polygons. If you have used polylines then with one additional line of code to set the fill colour you can do polygons.
function DrawPoly(id,points,width,color)
{
poly = new VEPolygon(id,points);
poly.SetOutlineWidth(3);
poly.SetOutlineColor(color);
poly.SetFillColor(color);
map.AddPolygon(poly);
}
Tags: