'Googla Map is not visible with ngx-print library

I'm using google map in my html page. When i want to print it with ngx-print , map is not visible.

my-map.html:

<div id="map_canvas" style="height: 400px; width:100%;">
   <div style="width:100%;height:100%;margin:0;padding:0;">
         <div #mapDivHistory id="viewhistorymap" style="overflow:hidden;height:100%;"> </div>
   </div>
</div>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source