title: Google Maps V3 InfoWindow ignores latLng position
body: <p>My map has no markers. In response to a click on the map, it pops up an infowindow with Lat/long shown in decimal to 5 dp and in Degrees minutes seconds. An open window is always closed prior to responding to a new click. The position is specified by position: latLng, but the infowindow is ALWAYS at the top left. I've spent days on this, and I feel I'm missing something. Code snippet below.  Any ideas?</p>
  
  <pre><code>google.maps.event.addListener(map, 'click', function (event) {
      var lat = event.latLng.lat(),
          lng = event.latLng.lng(),
          latLng = event.latLng,
          strHtml;
      //
      // strHtml build code omitted but succesfully uses lat and lng to produce
      // e.g. Latitude : 51.72229 N (51° 43' 20'' N)
      //      Longitude : 1.45827 E (1° 27' 30'' E)
      //
      // If an infowindow is open, then close it
      if (openedInfoWindow != null) openedInfoWindow.close();
      // latLng monitored to check it is there before use in infowindow
      alert(latLng); // returns correct values which position then ignores!
      var infoWindow = new google.maps.InfoWindow({
          position: latLng, 
          content: strHtml,
          maxWidth: 420
      });
      // Open infoWindow
      infoWindow.open(map,this);
      // Remember the opened window
      openedInfoWindow = infoWindow;
      // Close it if X box clicked
      google.maps.event.addListener(infoWindow, 'closeclick', function() {
      openedInfoWindow = null; 
      });    
  });
  </code></pre>