Google Maps V3 InfoWindow ignore latLng position

Ma carte n'a pas de marqueurs. En réponse à un clic sur la carte, il apparaît une infowindow avec Lat/long montré en décimal à 5 dp et en Degrés minutes secondes. Une fenêtre ouverte est toujours fermé avant de répondre à un nouveau clic. La position est indiquée par la position: latLng, mais l'infowindow est TOUJOURS en haut à gauche. J'ai passé des heures sur ce sujet, et je sens que je suis en manque de quelque chose. L'extrait de Code ci-dessous. Des idées?

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; 
    });    
});
La suppression de la 2e argument a parfaitement fonctionné. Merci beaucoup Dr Molle.

OriginalL'auteur Robin Lucas | 2013-10-29