I was wondering if I could manipulate G polyline so that > I can single-click to start the polyline and then the next single-click > would end the line. Instead of just creating a vertix and the line continues > until you double-click. Thank you.
you might be interested in this code: http://gmaps-samples.googlecode.com/svn/trunk/poly/mymapstoolbar.html which does basically the same thing, but is a little easier to see what's going on. The single-click option in the original is of course so that you can draw lines that are not straight, but if you don't need that it seems to me that all you need to do is to take out the middle bit of the code so the line ends on the next click... ? -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
