title: Google Maps API v3 - EventListeners `click` and `closeclick` on infowindows conflicting?
body: <p>I am using the events <code>click</code> and <code>closeclick</code> to set different values with the methods <code>panTo()</code> and <code>setZoom()</code>.<br /><br />
  So when the user clicks on a map marker, it will pan to that marker and zoom in. <em>This part is working.</em> Then, when the infowindow is closed I want it to zoom out and pan to the original position (<em>not working</em>).<br /><br />
  These two events seem to be conflicting in my code, so do I need to make use of <code>clearListeners</code> to resolve this conflict? Here is the relevant code:<br /></p>
  
  <pre><code>function setInfoWindow(mapRef, mapSettings, mapMarker, markerInfoWindow)
  {
      // event listener for infowindow of each map marker, onclick
      google.maps.event.addListener(mapMarker, "click", function()
      {
          markerInfoWindow.open(mapRef, this);
          mapRef.panTo(this.position);
          mapRef.setZoom(3);
      });
  
      // 
      google.maps.event.addListener(mapMarker, "closeclick", function()
      {
          mapRef.panTo(mapSettings.center);
          mapRef.setZoom(2);
      });
  
  } // end of function setInfoWindow
  </code></pre>