1
map.component.ts Code:Anzeige benutzerdefinierten Tags in Google Maps Infowindow angular2
......
infoWindow = new google.maps.InfoWindow(
{
content: `<custom-tag></custom-tag>` //***not displaying anything***
});
infoWindow.open(map, marker);
......
map.component.html Code:
<custom-tag></custom-tag> <!--***displays hi***-->
<div class="google-maps"></div>
custom-tag.component.html Code:
<h2>hi</h2>
Die Dateien module.ts, routing.ts haben sicher keine Fehler. Das Infofenster öffnet sich und zeigt nichts an. Bitte helfen Sie mir herauszufinden, warum das Infowindow nichts anzeigt.