Yes but in your code I see 5 vertex (the first and the last have the
some coordinates).

So I a question: Do a polygon must be close? (in this case a triangle
will be 4 vertex and not 3)


On 21 Ott, 16:18, "warden [Andrew Leach - Maps API Guru]"
<[EMAIL PROTECTED]> wrote:
> On Oct 21, 3:13 pm, Martin <[EMAIL PROTECTED]> wrote:
>
> > For me poly.getVertexCount() is not a problem.
>
> > The only problem is: if try to add poly0.deleteVertex(2) with firebug
> > on follow code I don't see a triangle but I see again a polygon with 4
> > vertexes.
>
> > This is the code (in code of my fiest post there is a stupid bug):
>
> Please provide a link, not code.
>
> For example:http://andrew.leach.1.googlepages.com/location.htmhas a
> rectangle drawn on it. I did that page for click-handling, but it
> suffices here.
>
> Type into the address bar:
>   javascript:poly.deleteVertex(2);
> and see a triangle. It does work. However
>   javascript:alert(poly.getVertexCount());
> still returns 4.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
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