Just so I understand... something like this...

GlobalPolygonCounter++;
GlobablPolygonArray[GlobalPolygonCounter] = new GPolygon([], color, 5,
0.7, color, 0.2);

Then when I want to get the vertices...

for (var j; j < GlobablPolygonArray.length; j++){
var k = GlobablPolygonArray[j].getVertexCount(); // get the amount of
points
        for (var i = 0; i<k; i++){
                cell.innerHTML = cell.innerHTML +
GlobablPolygonArray[j].getVertex(i);  //to view
        }
}

On Feb 11, 7:58 am, "[email protected]" <[email protected]>
wrote:
> On Feb 11, 4:34 am, Zoyx <[email protected]> wrote:
>
> > Hopefully this is easy.  I have the user draw a bunch of polygons,
> > then hit a "done" button.  At this point, I want to dump the
> > coordinates of each polygon to a file.  What I am stumbling on, how do
> > I get at the coordinates of each polygon?
>
> You need to create an array that holds references to them.
>
> > ... what are their reference IDs?  
>
> It doesn't look like you have made any.  I usually make a global
> array.  Then when you start a polygon, add it to that array.  When you
> are done, iterate through the array saving the vertices (and probably
> the other editable properties also, which you probably also have to
> save yourself).
>
> > What I have so far...http://home.zoyx.com/temp/pireppoly.html
>
>    -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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?hl=en.

Reply via email to