title: How can I set the visibility of a polygon using Google's version 3 API?
body: <p>I've found the way to set the visibility of a marker using the following:</p>
  
  <pre><code>            // create the marker 
              blueMarker = new google.maps.Marker({
                  position: new google.maps.LatLng(33.514428, -112.29056534285377),
                  draggable: true,
                  raiseOnDrag: false,
                  icon: './Images/blue3Marker.png',
                  shapeType: 'BuyersEdgeArea',
                  shapeID: '3'
              });
  
              // set the marker on the map
              blueMarker.setMap(map);
  </code></pre>
  
  <p>Then I use blueMarker.setVisible(false) or blueMarker.setVisible(true) to make it visible/not visible.</p>
  
  <p>But how to I do the same for a polygon?</p>
  
  <p>Here's how I've set up my polygon:</p>
  
  <pre><code>        BuyersEdge3 = new google.maps.Polygon({
              clickable: true,
              paths: BuyersEdgePath3,
              strokeColor: '#000000',
              strokeOpacity: 1,
              strokeWeight: 2,
              fillColor: ' #810541 ',
              fillOpacity: 0.35
          });
  
          // set the shape on the map
          BuyersEdge3.setMap(map);
  </code></pre>
  
  <p>Now how would I make this shape not visible ?</p>
  
  <p>My situation is that I have a checkbox where the user checks to either see or not see a polygon.  The first time it's checked, I'll create the polygon but subsequent times, I just want to make the polygon shape visible or not.</p>
  
  <p>I'm converting an Virtual Earth app where I could just "show" or "Hide" a layer with the polygon on it but I can't find something to do the trick for the Google API version 3 using JavaScript.</p>