Konstantin Kudelko
Konstantin Kudelko

Reputation: 350

The following JavaScript with google maps error appeared: NotLoadingAPIFromGoogleMapsError

Google Maps JavaScript API error: NotLoadingAPIFromGoogleMapsError

Any thoughts?

Upvotes: 1

Views: 4633

Answers (1)

geocodezip
geocodezip

Reputation: 161374

This error message:

Google Maps JavaScript API error: NotLoadingAPIFromGoogleMapsError

is a little misleading.

The description from the documentation:

NotLoadingAPIFromGoogleMapError
The Maps JavaScript API must be downloaded directly from Google's servers.
The script element that loads the Maps JavaScript API is not being included correctly on your page. In order for the API to work correctly, it must be loaded directly from https://maps.googleapis.com.

See Loading the Maps JavaScript API.

It also occurs when using the original location for the google maps API (which worked for years):

http://maps.google.com/maps/api/js

Changing that to (per the documentation link above):

https://maps.googleapis.com/maps/api/js

fixes the error.

Upvotes: 1

Related Questions