Google Maps API 服务器拒绝了您的请求 [英] The Google Maps API server rejected your request

查看:38
本文介绍了Google Maps API 服务器拒绝了您的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I m working on an application which renders google maps on an image as below

<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">

地图未呈现,当我右键单击图像源并单击 url 时,我收到以下消息

The map is not getting rendered and when I right click on the source of image and click the url, I get the following message

Google Maps API 服务器拒绝了您的请求.此站点或 IP 无权使用此 API 密钥."

"The Google Maps API server rejected your request. This site or IP is not authorized to use this API key."

我已在 https://code.google.com/apis/console API 密钥似乎都是正确的.只是想知道如何修复站点和 IP 位?

I have checked the API Access on https://code.google.com/apis/console the API key seems to be all correct. Just wondering how to fix the site and IP bit?

请参阅下方 google API 控制台中的设置

See below the settings in google API console

推荐答案

确保除了Google Maps API"之外,您还启用了Static Maps API"服务.

Make sure you have enabled "Static Maps API" service in addition to "Google Maps API".

这篇关于Google Maps API 服务器拒绝了您的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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