title: Remove Polyline tool from drawing manager
body: <p>I want to remove PolyLine drawing tool from Google maps API V3, Sorry if this is a silly question. I'm new to this, I've searched everywhere before asking it in here. Thank You.</p>
  <p>I've added the image below for more clarity. I want to remove that tool from the options.</p>
  <p><a href="https://i.stack.imgur.com/jRCKx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jRCKx.png" alt="" /></a></p>
  <p>I'm using the below code to initialize the <code>drawingManager</code></p>
  <pre><code>drawingManager = new google.maps.drawing.DrawingManager({
      drawingControlOptions: {
          position: google.maps.ControlPosition.TOP_CENTER,
      },
      drawingModes: [
      google.maps.drawing.OverlayType.MARKER,
      google.maps.drawing.OverlayType.CIRCLE,
      google.maps.drawing.OverlayType.POLYGON,
      //google.maps.drawing.OverlayType.POLYLINE,
      google.maps.drawing.OverlayType.RECTANGLE,
    ],
  
      markerOptions: {
          draggable: false,
          label: &quot;&quot;
      },
  
      // polylineOptions: {
      //     editable: false,
      // },
  
      rectangleOptions: polyOptions,
      circleOptions: polyOptions,
      polygonOptions: polyOptions,
      map: map
  });
  </code></pre>