4

I have an application that makes a GET call to https://maps.googleapis.com/maps/api/js?key=&libraries=places when it tries to load the Google Maps API. I believe this is synchronously loading which is documented in the Google Maps documentation.

However, I have been seeing the following error popping up in my automated testing environment in the last 24 hours:

Loading the Google Maps JavaScript API without a callback is not supported: https://developers.google.com/maps/documentation/javascript/url-params#required_parameters

I wonder if anyone knows what's going on?

Making a GET request to https://maps.googleapis.com/maps/api/js?key=&libraries=places URL should still allow synchronously loading.

3
  • Please provide a minimal reproducible example that demonstrates your issue, preferably a StackSnippet in the question itself. Commented Jan 20, 2023 at 6:12
  • 2
    Google have changed the requirements for this - not sure when but I found exactly this last night. Ordinarily this is easily fixed adding the callback=initMap to the script url which is as they suggest - when the initMap is within a script declared as module on the page then this does not work Commented Jan 20, 2023 at 8:57
  • 1
    The same error occurs on the "sample" page documenting synchronous loading in the documentation. Commented Jan 21, 2023 at 19:48

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.