When I try to embed the google maps within the ion-card it doesn’t show up. I tried this way:
<ion-card-header>
Google maps
<ion-card-content>
<div id="gmap"></div>
</ion-card-content>
</ion-card>
But if I just use gmap div without the ion-card it works fine:
This works:
<ion-content><div id="gmap"></div></ion-content>
One more way I tried is that, When I specify the height and width for the div which shows the map in pixels within the ion-card it works:
<ion-card-header>
Gmaps
</ion-card-header>
<ion-card-content>
<!-- Add card content here! -->
<div id="map" style="width: 200px; height: 200px;"></div>
</ion-card-content>
</ion-card>
What could be issue for this? Are there any work arounds for this? Please help.