On Oct 21, 10:58 pm, Martin <[EMAIL PROTECTED]> wrote:
> So I a question: Do a polygon must be close? (in this case a triangle
> will be 4 vertex and not 3)
>
No it doesn't have to be.
There just seems to be a minimum limits of
4 vertices in a GPolygon and
2 vertices in GPolyline
for deleteVertex() to work.
You can easily test that by repeating deleteVertex(0). It just stops
doing anything under the limit. That is why I suggested separate
array and pop() method above.
I just been writing an editor and noticed the limits but I don't see
that as any trouble.
Try playing with the editor
http://mapsapi.googlepages.com/poly2csv.htm
The [new rectangle] and [circle] creates GPolygons. Loaded by [draw
from text field] they are GPolylines
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---