I have post a small part of my project because it is very complex.

In any case if I copy my code on a HTML file, open it with firefox and
then use firebug to add this code: poly0.deleteVertex(2); I don't have
any error but poly0 have 4 vertex and not 3.

But if copy my code on a HTML file, add a new vertex (so poly0 have 5
vertex), open it with firefox and then use firebug to add this code:
poly0.deleteVertex(2); now poly0 have 4 vertex but if try again it
poly0 still have 4 vertex and not 3.

Please help me.


On 21 Ott, 00:47, Esa <[EMAIL PROTECTED]> wrote:
> Why did you post that code that has nothing to do with the question? I
> don't see any deleteVertex() there.
>
> Yes, it is true that deleteVertex() works just like you describe. If
> you want to delete the fourth vertex, you have to write a function
> that loops through the polygon by .getVertex(i) and saves the points
> to an array. Then you can shorten the array by .pop() method and
> redraw the polygon.
--~--~---------~--~----~------------~-------~--~----~
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