Google Maps API项目和凭据(关键)之间有什么区别? [英] What is difference between the Google Maps API project and credentials (key)?

查看:112
本文介绍了Google Maps API项目和凭据(关键)之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在两个网站上有几个简单的Javascript Google地图。这里有什么项目 - 每张地图或一切?或者也许在一个网站上的地图是一个项目?但他们没有任何关系。应该创建多少个项目以及多少凭证?到目前为止,我已经创建了一个项目和许多凭据作为地图。但是这些地图是分开的,几乎都是不同的,只有少数地图由一个普通的php生成,但即使在这种情况下,其中一半在互联网上完全不同。



我不明白这一点。



谢谢。

解决方案

感谢。这将是一个补充问题。昨天我为第二个网站上的地图创建了第二个项目(尽管它们除了在同一个域上的位置之外没有任何关系),为这些地图创建了新的API密钥并在第一个项目中删除了它们的API密钥,因为它们是在第二个项目中。



地图无法再显示。 Google地图是灰色的,并显示信息:


糟糕!出了些问题。此页面未正确加载Google地图


Javascript控制台显示:


Google Maps API错误:DeletedApiProjectMapError
https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-error
js: 32:350

在没有API密钥的情况下,相同的地图工作正常,但不能使用新的API密钥!



以下是一个例子:

http://darz-bor.info/mapy/puszcza/



我会保留这个文件不工作的API密钥1-2天,让你看到它,然后将删除API密钥。



如何使新的API密钥工作?


I have several simple Javascript Google maps on two websites. What is project here - each map or everything ? Or maybe maps on one website are one project ? But they have nothing to do with each other. How many projects should be created and how many credentials ? So far I created one project and so many credentials as maps in it. But these maps are separated, almost all different, only few of them generated by one common php, but even in this case half of them are completely different in the internet.

I don't understand this at all.

Thank you.

解决方案

Thanks. This is going to be a supplementary question. Yesterday I created already second project for maps located on second website (despite they have nothing to do with each other except location on the same domain), created new API keys for those maps and deleted their API keys in the first project, because they are in the second project now.

And maps can't be displayed any more. Google Maps is gray and displays information:

Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details.

The Javascript console says:

"Google Maps API error: DeletedApiProjectMapError https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-error" js:32:350

The same maps work fine without API key, but don't work with the new API key !

Here is an example:

http://darz-bor.info/mapy/puszcza/

I will keep this file with not working API key 1-2 days to allow you to see it and after that will remove API key.

How to make the new API keys working ?

这篇关于Google Maps API项目和凭据(关键)之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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