我在这里做错了什么?标记显示在地图上,但信息窗口没有。我该怎么做才能发挥作用?
非常感谢!
this.map.addMarkerCluster({
markers: markerClusters,
icons: [ ... ]
}).then((marker) => {
marker.on(GoogleMapsEvent.MARKER_CLICK)
.subscribe(()=>{
var html = [
'This is <b>Html</b> InfoWindow',
'<br>',
'<button onclick="javascript:alert(\'clicked!\');">click here</button>',
].join("");
// this.map. .setContent(html);
this.infoWin.setContent(html);
this.infoWin.open(marker);
})
})