Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps JavaScript API warning: NoApiKeys

Our site giving the warning prompt "This page can't load Google Maps correctly". I am using "ivory-google-map" bundle of symfony2. In the console, we found the warning as "Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys" Any help would be really appreciated.

like image 575
Vishal Pawar Avatar asked Nov 15 '25 05:11

Vishal Pawar


1 Answers

As the error message says, you need APIKey to remove this error.

You can get APIKey from https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key

And apply that key to your code like :

<script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" type="text/javascript"></script>

After that above error will no longer exists!

like image 182
saAction Avatar answered Nov 17 '25 18:11

saAction



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!