great question! I didn't include this functionality in the new geometrycontrol project thats now available here:
http://gmaps-utility-library-dev.googlecode.com/svn/trunk/geometrycontrols/examples/test.html but obviously this would be great functionality to have. I'm adding it now, but here's the relevant code you'll need var digitizerShape = new GPolygon(/*fill in details*/); map.addOverlay(digitizerShape); digitizerShape.enableDrawing({}); GEvent.addListener(map,"singlerightclick",function(point,src,overlay){ if(typeof(overlay.index) !== "undefined"){ digitizerShape.deleteVertex(overlay.index); digitizerShape.enableDrawing({}); //calling deleteVertex disables drawing, so re-enable it } }); but make sure to remove the listener when you're done digitizing, since this listener is added to the map. I'll post back when I've added this to all of the poly controls- On Oct 11, 6:50 am, "mariusz.piatek" <[EMAIL PROTECTED]> wrote: > Hello, > How can I easy delete vertex from polyline, simply clicking on point > in edit mode? > I know how to add point, but there aren't any events to remove points. > Please help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
