忘れていたandよく使うので、初歩的な内容ですがハックに残しておきます。
// objectの生成
var infowindow = new google.maps.InfoWindow({
content: 'hello',
position: latlng, //緯度経度のlatlng オブジェクト
......
});
//以上の設定は以下のようにしても可能
infowindow.setContent(content);
infowindow.setPosition(latlng);
// windowの表示(markerとは違ってopenして初めて表示される)
/*引数としてmapは必ず必要、markerは任意*/
infowindow.open(map,marker);


