> function removeRoute() {
>         poly.enableEditing();
>         poly.deleteVertex(0);

Now there are only 6 vertices, (0) to (5) ...

>         poly.deleteVertex(1);
Now there are 5, (0) to (4) ...
>         poly.deleteVertex(2);
Now 4 ....
>         poly.deleteVertex(3);
Now 3 numbered (0) to (2), so there is no vertex (3) to delete.  The
browser will tell you this with a script error.

-- 
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