javascript - Google map API - 未捕获错误 : Module: 'earth' not found

标签 javascript google-maps google-chrome

我使用 Google Maps API 的网页停止工作,显示此警告

"Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required" util.js:210:33

我已从脚本中删除了“传感器”参数:

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=AIzaSyDUfHlQGcDOJ4MUcEdhBaIs0Qvs80Fmes4"></script>

然后它在这一行标记了错误:

google.load("earth", "1.x");

从昨天开始,我一直在查看帮助论坛,但一直找不到解决方案。

screenshot of error message

最佳答案

The Google Earth API is no longer available.

Blog Announcement

来自博客:

we have decided to retire the Google Earth API. Per our deprecation policy, the API will be supported until one year from today and will be turned off on December 12, 2015.

关于javascript - Google map API - 未捕获错误 : Module: 'earth' not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42007768/

相关文章:

android - 在 Android 中将城市作为标记传递

javascript - Chrome 中的 Canvas 半圆错误解决方法

javascript - 使用 Javascript 检查 Windows Vista

google-maps - Google Places API 获取出租车司机电话

asp.net - 谷歌地图标记根本不显示

css - Chrome拒绝在某些页面上打印纵向模式

python - 如何将 Selenium Chrome 选项添加到 'desiredCapabilities' ?

Javascript:push()到内部类似字典的对象?

javascript - 为什么我收到一个空的警报框?

javascript - 为什么 concat 结果中有数组的总索引数