I want to delete all vertecies
Teh getVertexCount() command tells me there are 7
So if I run the following it would seem that they should all be
deleted. However what I end up with is that 4 are deleted and I end up
with a V shaped polyline.
Any ideas on how to make it remove all? Once they are removed then I
can enable drawing and start all over.
function removeRoute() {
poly.enableEditing();
poly.deleteVertex(0);
poly.deleteVertex(1);
poly.deleteVertex(2);
poly.deleteVertex(3);
poly.deleteVertex(4);
poly.deleteVertex(5);
poly.deleteVertex(6);
}
--
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.