Google Mapsでマーカーをプロットさせて、それをクリックした際に何か処理を行うというのは良くやることですが、情報ウィンドウについても幾つかイベントがあります。
- closeclick
- content_changed
- domready
- position_changed
- zindex_changed
これらをうまく使えるとユーザーのリクエストに先回りすることやより地図のUXの向上をはかることができそうです。
ちなみに以下のように使います。
var infoWindow = new google.maps.InfoWindow({
position: {lat: -25.363, lng: 131.044},
content: content
});
google.maps.event.addListener(infoWindow, 'domready', function() {
console.log("infoWIndow is created");
});


