【发布时间】:2015-07-30 18:27:25
【问题描述】:
我按照 Google 教程介绍了如何为浏览器生成 API 密钥,但是由于密钥无效错误,我无法加载地图。
发布到相关问题的解决方案均不适用于我的情况。
这是我的代码:
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>myTitle</title>
<script src="https://maps.googleapis.com/maps/api/js?key=MYKEY"
type="text/javascript"></script>
</head>
Web 控制台日志:
"ApiNotActivatedMapError: https://developers.google.com/maps/documentation/javascript/tutorial#api_key" main.js line 61 > eval:50:381
Nr/this.j</<() main.js line 61 > eval:50
as</<() main.js line 61 > eval:54
Ar/d() main.js line 61 > eval:43
<anonymous> AuthenticationService.Authenticate:1
【问题讨论】:
标签: javascript html google-api maps