I suspect this is a timing issue;
Line.insertVertex(2, new GLatLng(25.039998, 121.514964));
will trigger an asynchronous re-rendering of the updated polyline.
Eventually.
Meanwhile, your script carries on ...
map.removeOverlay(Line);
removes the original polyline from the screen, and removes the
association between Line and map.
Some time later the updated polyline gets drawn on the screen, but
because the parent GPolyline has been removed from the map, it doesn't
respond to pans and zooms because it's not connected to the map.
If you really need to update and then immediately remove the polyline,
add a short delay before doing the removeOverlay()
cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---