Here is the code I have now:

function mapClick(e:MapMouseEvent):void
{
var latlngClicked:LatLng = e.latLng;
polyLatLngs.push(latlngClicked);
drawCoordinates();
}
function nextPoly(e:Event):void
{
polyShape = null;
polyLatLngs.length = 0;
}
function toggleDrawMode(e:Event):void
{
map.clearOverlays();
polyShape = null;
drawCoordinates();
}
function drawCoordinates():void
{
if (polyLatLngs.length > 1)
{
polygonMode = drawmode_polygon.selected;
if (polygonMode)
{
polyShape = new Polygon(polyLatLngs);
}
else
{
polyShape = new Polyline(polyLatLngs);
}
var pane1:IPane = map.getPaneManager().createPane(1);
pane1.addOverlay(polyShape);
}
}

Every time I draw a polygon it shows up as it does in the demo by pamela. (a 
blue line connecting the original point to all other points and and a shaded 
blue fill.) I want to give the user the option to choose between White 
(0xffffff) Grey (0x898989) and Dark Grey (0x363636) when they draw the 
polygon. I have tried the PolygonOptions but either don't understand where 
to place this in the code or I am using this completely wrong.

Thanks for the help
Otto

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en.

Reply via email to