rum*_*umi 34 javascript google-maps google-maps-api-3
我正在开发一个应用程序,它在图像上呈现谷歌地图,如下所示
<img alt="Google Maps (Scotland)" src="http://maps.google.com/staticmap?size=480x200&maptype=mobile\&markers=55.9368450758,-3.03604939504,reda|55.9454374538,-3.18124534297,redb&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
Run Code Online (Sandbox Code Playgroud)
地图没有渲染,当我右键单击图像源并单击该URL时,我收到以下消息
"Google Maps API服务器拒绝了您的请求.此网站或IP无权使用此API密钥."
我已经检查了https://code.google.com/apis/console上的API访问权限,API密钥似乎都是正确的.只是想知道如何修复网站和IP位?
请参阅以下google API控制台中的设置

Sim*_*tsa 67
除"Google Maps API"外,请确保您已启用"Static Maps API"服务.
eus*_*iro 19
确保您已启用与Google地图相关的服务("Google Maps Embed API"和"Static Maps API"),如下所示:

然后标记它们:

在新的布局中,您可以在此处找到它:

确保您在 Simple API Access 部分有一个浏览器密钥,并确保Referers设置为Any referer allowed