title: Google Maps API v3 Custom Button
body: <p>After having looked at the following question and answer (<a href="https://stackoverflow.com/questions/8187758/initiate-polygon-drawing-from-custom-button?rq=1">Initiate polygon drawing from custom button</a>) ,  trying the code and getting no results I am not sure what I am doing wrong. My code is as follows:</p>
  
  <pre><code>//button function
  $(".btn &gt; .icon-circle-blank").click(function(event){
      //stub for gmap radius drawing
      drawingManager.setDrawingMode(google.maps.drawing.OverlayType.CIRCLE);
  })
  </code></pre>
  
  <p>I am able to initialize the drawing tools with </p>
  
  <pre><code>      var drawingManager = new google.maps.drawing.DrawingManager({
        drawingControl: true,
        drawingControlOptions: {
          drawingModes: [
            google.maps.drawing.OverlayType.CIRCLE,
            google.maps.drawing.OverlayType.POLYGON,
            google.maps.drawing.OverlayType.RECTANGLE
          ]
        }
      });
  </code></pre>
  
  <p>Usually I have drawingControl set to false and my custom button is not on the map.</p>
  
  <p>Thanks for your help!</p>