0

我是一名业余网站开发人员,但精通 html 和 javascript。我有几个网站使用 Google Maps API V2 没有问题。我尝试升级到 V3。我得到了一个新的 API 密钥并使用了 Google 提供的示例 html(基于澳大利亚)。我得到的只是“禁用”消息。如果我完全移除钥匙,它就可以工作!我究竟做错了什么?!!( www.gn45.com/gmap.html )

4

1 回答 1

0

This message appears, because there's a particular domain whitelist, that is configured for each business account. By default, you can always access google APIs with an API key from localhost, but any other domain should be specifically set within account management.

With the mobile application, your index.html is read from the filesystem and then passed to in App Browser. Therefore google rejects a request to the API with API key. You can temporarily remove API key from your request and access the API without any, this way you'll have a 50k request/month limit, which should be sufficient for development purposes.

I'm looking for a way to configure this myself, as soon as I find one, I'll provide an update.

于 2014-01-27T14:40:41.677 回答