Awesome, I feared that changing the state of the control to "disabled" would disable the drawing functions as well, but clearly this is not the case, and makes extending the control much easier-
On Saturday, November 19, 2011 5:23:01 AM UTC-5, Adrien wrote: > > Brilliant, thanks. Worked a charm > > On Nov 19, 2:36 am, "Enoch Lau (Google Employee)" > <enoch...@google.com> wrote: > > What you can do is have a DrawingManager attached to a map, with > > drawingControl: false (to hide the default buttons). Then, you can have > > your html button do the following on click: > > > drawingManager.setDrawingMode(google.maps.drawing.OverlayType.POLYGON); > > and that'll bring the map into drawing polygon mode programmatically. > > > > Enoch > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-js-api-v3+unsubscr...@googlegroups.com. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. For more options, visit https://groups.google.com/groups/opt_out.