Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps API error: DeletedApiProjectMapError

I have to use google map. I use below google API script

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MY_API_KEY"></script> 

And i got below Error

Google Maps API error: DeletedApiProjectMapError https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-error

I created a New Project & New API key. But still this error came. Kindly help to solve this error.

like image 597
Prakash Arul Mani Avatar asked Jul 04 '16 10:07

Prakash Arul Mani


People also ask

Why is my Google Maps API not working?

There are a several reasons why your google maps may not be working, the most common issue being no Google Map API key set or set incorrectly. To use the Google Maps JavaScript API, you must register your app project on the Google Cloud Platform Console and get a Google API key which you can add to your app.

How do I fix InvalidKeyMapError?

Deleting the existing key and regenerating a new key worked for me. Show activity on this post. InvalidKeyMapError happens when your API key can't be found. So make sure you are using correct key that you generate or regenerate it.

How do I get rid of this page Cannot load Google Maps correctly?

You can do that by accessing Application restrictions, then navigate to “HTTP referrers” then type in your domain's name. After making the necessary changes, click Save. Copy the API key because you will need it to get the map back on your website.


2 Answers

Yo should go to https://console.developers.google.com and after create your API KEY, go to "Google Maps JavaScript API" and just ENABLE (by default is DISABLE)

like image 120
JFer Avatar answered Sep 21 '22 17:09

JFer


You need to enable Maps JavaScript API for your website.

API link: https://console.developers.google.com/apis/library/maps-backend.googleapis.com?q=map

enter image description here

like image 42
Mike Yang Avatar answered Sep 21 '22 17:09

Mike Yang