I recently incorporated the Angular Google map component into my project, using the following code:
<google-map [options]="location?.googleMap?.mapOptions" height="100%" width="100%">
<map-marker
#marker="mapMarker"
*ngFor="let mapPinAddressMarkerPosition of location?.googleMap?.mapPinAddressMarkerPositions"
[position]="mapPinAddressMarkerPosition?.markerPosition"
[options]="mapPinAddressMarkerPosition?.markerOptions"
>
</map-marker>
</google-map>
The map works perfectly the first time it loads. However, I have noticed that if I navigate away from the page and then return to the Map tab, only a portion of the map is displayed. Any idea why this is happening?
Side Note:
This issue occurs for me when I click on a marker pin, which redirects me to another tab page programmatically, and then I return to the Map tab. For example, using
this.router.navigateByUrl('tabs/leads')
after clicking the Pin icon.