Google Maps API error: DeletedApiProjectMapError

旧巷老猫 提交于 2019-12-18 13:53:14

问题


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.


回答1:


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)




回答2:


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




回答3:


Based from this documentation, the DeletedApiProjectMapError means that your API project may have been deleted from the Google API Console. Please check the project for which you generated the API key that's included in JavaScript API loader.

Since you have already created a new API project and get a new key on the Google API Console, one workaround I found on this forum is to try deactivating all plugins to see if one of them is causing a conflict.

Check this related link. It states that:

I created new API keys in the first project for those maps again and deleted second project. The maps work partially now - without markers. It looks a little like manual blocking by someone on the Google maps side. Maybe someone is blocking access to Marker Manager .js file somewhere between my computer and a server where it is stored to ban my website.

Hope this helps!




回答4:


I activate/enable more API Google Maps on https://console.developers.google.com and disappear this error.




回答5:


There some answers saying the JavaScript API needs to be enabled as it is disabled by default. That seems to have changed. It was enabled by default in my account. It did not work anyway. I had to disable and reenable the API, then it worked.

Also it is to be noted that Google says it may take a couple of minutes upon creation until the API key works, that may also have been the thing.




回答6:


You have deleted the project in google cloud platform of which you created an API.Regenrate Api by creating a new Project in google cloud platform.



来源:https://stackoverflow.com/questions/38182710/google-maps-api-error-deletedapiprojectmaperror

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!