title: how to zoom out the map when the InfoWindow is closed in google map?
body: <p>i want to zoom out the map when the InfoWindow is closed. i tried this one.</p>
  
  <pre><code> google.maps.event.addListener(marker, 'click', (function(marker, i) {
          return function() {
              infoWindow.setContent(infoWindowContent[i][0]);
              infoWindow.open(map);
              map.panTo(this.getPosition());
              map.setZoom(6);
          }
  
      })(marker, i));
  
      google.maps.event.addListener(marker, 'closeclick', (function(marker, i){
          return function() {
                   map.panTo(this.getPosition());
                   map.setZoom(2);
          }
      })(marker, i));
  </code></pre>
  
  <p>But its not working. can anyone help me!!
  In my map there are some markers and when one marker is clicked, it will zoom in to that location, and i want to apply zoom out when the InfoWindow is closed.</p>