Google Maps API error: DeletedApiProjectMapError

Google Maps API error: DeletedApiProjectMapError

我必须使用 google 地图。我在下面使用 google API 脚本

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MY_API_KEY"></script>

我遇到了以下错误

Google 地图 API 错误:DeletedApiProjectMapError https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-error

我创建了一个新项目和新 API 密钥。但是还是出现了这个错误。请帮忙解决这个错误。

基于此 documentationDeletedApiProjectMapError 意味着您的 API 项目可能已从 Google API 安慰。请检查您为其生成 API 密钥的项目,该密钥包含在 JavaScript API 加载程序中。

由于您已经创建了一个新的 API 项目并在 Google API 控制台上获得了一个新密钥,因此我在此 forum 上找到的一个解决方法是尝试停用所有插件以查看是否其中之一导致冲突。

检查这个相关的link。它指出:

I created new API keys in the first project for those maps again and deleted second project. The maps work partially now - without markers. It looks a little like manual blocking by someone on the Google maps side. Maybe someone is blocking access to Marker Manager .js file somewhere between my computer and a server where it is stored to ban my website.

希望对您有所帮助!

我 activate/enable 更多 API Google 在 https://console.developers.google.com 上映射并消除此错误。

你应该去 https://console.developers.google.com 并在创建你的 API KEY 之后,去 "Google Maps JavaScript API" 并且只是启用(默认情况下是禁用)

有些回答说 JavaScript API 需要启用,因为它默认是禁用的。这似乎已经改变了。它在我的帐户中默认启用。无论如何它没有用。我不得不禁用并重新启用 API,然后它起作用了。

还需要注意的是 Google 表示创建后可能需要几分钟时间才能使 API 密钥生效,这也可能是问题所在。

您需要为您的网站启用地图 JavaScript API。

API link: https://console.developers.google.com/apis/library/maps-backend.googleapis.com?q=map

您已通过在 google 云平台中创建新项目删除了 google 云平台中创建了 API.Regenrate Api 的项目。