google-maps - Google Maps API 服务器拒绝了您的请求

标签 google-maps google-maps-api-3

我正在开发一个在图像上呈现谷歌地图的应用程序,如下所示

<img alt="Google Maps (Scotland)" src="http://maps.google.com/staticmap?size=480x200&amp;maptype=mobile\&amp;markers=55.9368450758,-3.03604939504,reda|55.9454374538,-3.18124534297,redb&amp;key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">

map 没有得到渲染,当我右键单击图像源并单击 url 时,我收到以下消息

“Google Maps API 服务器拒绝了您的请求。此站点或 IP 无权使用此 API key 。”

我检查了 https://code.google.com/apis/console 上的 API 访问API key 似乎都是正确的。只是想知道如何修复站点和 IP 位?

在谷歌 API 控制台中查看下面的设置

enter image description here

最佳答案

确保除了“Google Maps API”之外还启用了“Static Maps API”服务。

关于google-maps - Google Maps API 服务器拒绝了您的请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19408066/

相关文章:

java - 显示位置并将相机置于其中心位置时出现问题

google-maps - 谷歌地图API授权

javascript - Google Maps Places 搜索框 : how to recalculate position of pac-container

javascript - 无法看到谷歌地图气球上的内容?

javascript - 使用传单将标记绑定(bind)到 map 中心

google-maps-api-3 - Google Maps API V3 - 自定义图 block

javascript - 添加自定义图标到嵌入式谷歌地图

javascript - 谷歌地图API——google未定义、异步加载的API

android - 单击刷新菜单按钮后如何强制更新位置?

javascript - 谷歌地图 API V2 : How to add markers which behave like the default google maps markers