什么时候需要Google Maps API密钥? [英] When is a Google Maps API key required?

查看:174
本文介绍了什么时候需要Google Maps API密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近Google更改了使用API​​密钥的政策。您现在不再需要API密钥将Google地图置于您的网站上。

Recently Google changed it's policy on the use API keys. You're now supposed to no longer need an API key to place Google Maps on your website.

这样做完美。但现在我有这个地图(没有API密钥)运行在我的本地主机,这是正常工作。但是,一旦我把它放在网上,我得到一个弹出窗口,说我需要另一个API密钥。而在该网站的另一页上,Google地图也可以正常工作。这可能与那个不起作用的地图有很多关联(30+)的标记吗?

And this worked perfectly. But now I have this map (without API key) running on my localhost, which works fine. But as soon as I place it online, I get a popup saying that I need another API key. And on another page on that website, Google Maps does work. Could it maybe have something to do with that the map that doesn't work have a lot (30+) of markers on it?

实际上使用API​​密钥不会'对我来说,这是一个非常好的解决方案,因为这是许多网站上使用的Wordpress插件的一部分。

Actually using an API key wouldn't be a very nice solution to me, as this is part of a Wordpress plugin used on many websites.

推荐答案

听起来像你'运行v2〜时间进行升级,或获取要运行的域的密钥:
Google Maps V2 API密钥请求

Sounds like you're running v2~ time to upgrade, or get a key for the domain you want to run it on: Google Maps V2 API Key Request

这篇关于什么时候需要Google Maps API密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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