Google Map错误:InvalidKeyOrUnauthorizedURLMapError [英] Google Map error: InvalidKeyOrUnauthorizedURLMapError

查看:307
本文介绍了Google Map错误:InvalidKeyOrUnauthorizedURLMapError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JavaScript / HTML / CSS开发使用Google地图的应用程序。我收到以下提示对话框:



此网页无法显示Google地图元素。提供的Google API密钥无效或本网站未获得授权错误代码:InvalidKeyOrUnauthorizedURLMapError



应用程序不会实际显示地图元素;警报不是一个问题,除非它不应该出现。地图显示正常。



我已进入Google开发者控制台,并在凭据部分中将允许编辑的引荐来源设置为mydomain.com/ * b
$ b

我也加入了API部分的Google开发者控制台,并启用了11个Google Maps API。

解决方案

在大量引用者组合之后,删除并重新创建凭据,我意识到我没有启用Google Maps JavaScript API 。多可惜。 :)



对于那些无法获取Google Maps API工作的人,请先检查API是否启用。


I am developing in JavaScript/HTML/CSS an app that uses Google Maps. I am getting the following alert dialog box:

"This page was unable to display a Google Maps element. The provided Google API key is invalid or this site is not authorized to use it. Error Code: InvalidKeyOrUnauthorizedURLMapError"

The app does actually display the map element; the alert is not a problem except it should not appear at all. The map displays properly.

I have gone in to the Google Developer's Console and, in the "Credentials" section, have "edited allowed referrers" to be mydomain.com/*

I have also gone in to the Google Developer's Console in the APIs section and enabled 11 Google Maps APIs.

解决方案

After lots of referrer combinations, deleting and re-creating credentials i realized that i didn't enabled "Google Maps JavaScript API". What a shame. :)

For anyone who is having trouble to get google maps api work please check if the API enabled first.

这篇关于Google Map错误:InvalidKeyOrUnauthorizedURLMapError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆