Google地图API错误:MissingKeyMapError [英] Google Maps API error: MissingKeyMapError
本文介绍了Google地图API错误:MissingKeyMapError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的网站的网站托管版本中收到仅此错误,我正在使用密钥,它在本地运行良好!
帮助!
I'm getting this error only in the web hosted version of my website and I'm using the Key, It works fine in local! Help please!
<script async src="http://maps.googleapis.com/maps/api/js?=AIzaSyDudFyTGhbU2CvJtJNxdfkPcJfRQnZ1pbTg&libraries=geometry">
推荐答案
API键未被分配,因为您缺少GET参数键在url中,在这种情况下'?key ='
the API key is not being assigned because you are missing the GET parameter key in the url, in this case '?key='
<script async src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDudFyTGhbU2CvJtJNxdfkPcJfRQnZ1pbTg&libraries=geometry">
如果仍然无效,请查看Google的此指南: https://developers.google.com/maps/documentation/javascript/get-api-key
If it still doesn't work, check out this guide from Google: https://developers.google.com/maps/documentation/javascript/get-api-key
这篇关于Google地图API错误:MissingKeyMapError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文