Sep 13

Written by: Soul Solutions
Wednesday, 13 September 2006 

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

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
Copyright © 2002-2009 Soul Solutions Pty Ltd. | Login