event drawingManager buttons event code example
Example: event drawingManager buttons event
google.maps.event.addListener(drawingManager, "drawingmode_changed", function() {
console.log("drawing mode changed:"+drawingManager.getDrawingMode());
})