Mappers, I saw Mike's posting about disabling polyline drawing mode
here:

http://groups.google.com/group/Google-Maps-API/browse_thread/thread/d2e82069735da7a7/727425a1de165cfa?lnk=gst&q=drawing#727425a1de165cfa

But if we assume that a map starts off in drawing mode, and I wish to
stop drawing, in response to a button click , without asking the user
to click a point on the map, how can I do this?

As you know, there is no GPolyline.disableDrawing() method.

Is it recommended to simulate a click on the last vertex, to end
drawing, by using a GEvent.trigger(GMap2, "click", GOverlay)?

Finally, what if no vertex has been created yet, and we wish to
disable drawing (this generates a "cancel line" event)?  What should
we do in this case?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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