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