You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2026. It is now read-only.
I am migrating a site to web components and there are parts of our site with libraries that I can't swap over immediately. To this end, we already have Google Maps loading in the site.
The problem is that the google-maps-api doesn't check or have any way to not reload the API if it already exists in the site.
At the top of _computeUrl if you put in: if (google && google.maps) { return null; }
It would be much better to have a method to indicate that a google.maps library is already loaded and to just use that. I think that is better than making a duplicate instance of google-maps and the other.
I am migrating a site to web components and there are parts of our site with libraries that I can't swap over immediately. To this end, we already have Google Maps loading in the site.
The problem is that the google-maps-api doesn't check or have any way to not reload the API if it already exists in the site.
At the top of _computeUrl if you put in:
if (google && google.maps) { return null; }It would be much better to have a method to indicate that a google.maps library is already loaded and to just use that. I think that is better than making a duplicate instance of google-maps and the other.