I am using the npm package google-maps [https://www.npmjs.com/package/google-maps]. and using angular material modal to show google map but whenever I open the map a second time an error generates saying:
You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
I have tried removing the google maps APIs from the head of the HTML after the closing of the modal (in the ngOndestroy function), but it's not working.