我有和Arul完全一样的问题。
我正在尝试在网页上使用Google Maps API,但是当我尝试实现地图时,出现DeletedApiProjectMapError。
在尝试了多种方法来包含脚本之后,首先我进入了错误消息站点,例如:
<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>
并尝试API key
在Dev网站上添加新内容,但都无济于事。
错误是否可能不是我自己而是Google所为?
我已经找到解决问题的方法。
您需要同时启用Google Maps Javascript API和Geocoding API。
https://console.developers.google.com/projectselector/apis/library
和
https://console.developers.google.com/google/maps-apis/apis/geocoding-backend.googleapis.com
之后错误RefererNotAllowedMapError
代替了DeletedApiProjectMapError
,但这是因为我在本地主机上运行它-在我将域添加到本地之后它可以在实际站点上运行Credentials -> Domain Verification
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句