Google Maps API DeletedApiProjectMapError [英] Google Maps API DeletedApiProjectMapError
问题描述
我有完全相同的问题,例如 Arul 。
我试图在我的网页上使用Google Maps API,但是当我尝试实施地图时,我收到了DeletedApiProjectMapError。
首先,我在访问错误消息网站后已经尝试了很多方法来包含脚本,例如:
< script src =http://maps.googleapis。 COM /地图/ API / JS v = 3及?键= API_KEY>< /脚本>
//或
< script src =http://maps.googleapis.com/maps/api/js?key=API_KEY>< / script>
//或
< script src =http://maps.googleapis.com/maps/api/js>< / script>
,并尝试添加新的 API键
开发网站,但他们都没有作品。
有可能错误不在我身边,但在Google上?
您需要同时启用Google Maps JavaScript API, 和 Geocoding API。
https://console.developers.google.com/projectselector/apis/library
和
https://console.developers.google.com/projectselector/apis/api/geocoding_backend
之后错误是 RefererNotAllowedMapError
而不是 DeletedApiProjectMapError
,但那是因为我在本地主机上运行它 - 它在a上运行在我在 Credentials - >中添加域后的实际网站。域名验证
。
I have the exact same problem like Arul.
I am trying to use Google Maps API on my webpage but when I try to implement the map I've got DeletedApiProjectMapError.
First I went to the Error Messages site after I've tried many ways to include the script, like:
<script src="http://maps.googleapis.com/maps/api/js?v=3&key=API_KEY"></script>
//or
<script src="http://maps.googleapis.com/maps/api/js?key=API_KEY"></script>
//or
<script src="http://maps.googleapis.com/maps/api/js"></script>
and tried to add new API key
on the Dev site but none of them works.
Is it possible that the error isn't on my side but on Google's?
I have found the solution to the problem.
You need to enable both the Google Maps Javascript API, and the Geocoding API.
https://console.developers.google.com/projectselector/apis/library
and
https://console.developers.google.com/projectselector/apis/api/geocoding_backend
Afterwards the error was RefererNotAllowedMapError
instead of DeletedApiProjectMapError
, but that was because I was running it on localhost - and it worked on the actual site after I added the domain in Credentials -> Domain Verification
.
这篇关于Google Maps API DeletedApiProjectMapError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!