New Polygons in Virtual Earth

johnWeeGo.jpgA 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);                  
 }

polygons.JPG