-
Notifications
You must be signed in to change notification settings - Fork 67
Closed
Labels
needs more infoThis issue needs more information from the customer to proceed.This issue needs more information from the customer to proceed.triage meI really want to be triaged.I really want to be triaged.
Description
Environment details
- Loading places library
- Windows 10 Home
- Library version: 1.11.2
Steps to reproduce
- Create Angular component (any SPA would work)
- Create function to load google maps SDK (loader.load....)
- Browse the component offline (Obviously, google maps won't load)
- Turn your connection ON
- Reload the component without reloading the page
- Google maps fail to load
Code example
loadGoogleMapsSDK() {
//configure google maps javascript API
this.loader = new Loader({
apiKey: "API_KEY",
version: "weekly",
libraries: ["places"],
});
//load google maps js API
this.loader
.load()
.then(() => {
this.displayGoogleMap();
})
.catch((error) => { });
}
reloadPage() {
this.loader.deleteScript();
this.loadGoogleMapsSDK();
}
Stack trace
Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match.
common.js and utils.js are loaded, but not the rest of js files necessary to display the map. Any help?
Metadata
Metadata
Assignees
Labels
needs more infoThis issue needs more information from the customer to proceed.This issue needs more information from the customer to proceed.triage meI really want to be triaged.I really want to be triaged.