title: InfoWindow doesn't want to close with Google Maps Api V3
body: <p>i can't close the info window of the marker i'm dragging, any idea ?
  Thanks for your help</p>
  
  <pre><code>function mapClick(event) {
  
          createLocationMarker(event.latLng);
  
  }
  function createLocationMarker(location) {
      var clickedLocation = new google.maps.LatLng(location)
      var gMarker = new google.maps.Marker({position:location, map:gMap2, draggable: true});
  
      gMap2.setCenter(location);
      displayMarkerPosition(gMarker);
  
       google.maps.event.addListener(gMarker, "dragstart", closeMapInfoWindow );
       google.maps.event.addListener(gMarker, "dragend", function() { displayMarkerPosition(gMarker); });
  }
  
  function closeMapInfoWindow() {infowindow.close(); }
  
  function displayMarkerPosition(gMarker) {
      var message = "my message";
      var infowindow = new google.maps.InfoWindow(
      {   content : message,
      });
  
      infowindow.open(gMap2,gMarker); 
  }
  </code></pre>