【发布时间】:2018-12-01 08:09:24
【问题描述】:
当我尝试在我的网页中显示时,Google 地图会显示“仅用于开发目的”消息:
我怎样才能让这条消息消失?
我的代码是这样的:
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script type="text/javascript">
function initialize() {
var myLatlng = new google.maps.LatLng(50.5792659,8.6744471);
var centerMap = new google.maps.LatLng(50.5792659,8.6744471);
var div = document.getElementById('map');
}
</script>
然后我有
<p>
<a
href="https://www.google.com/maps/dir//50.5792659,8.6744471/@50.579266,8.674447,16z"
target="_blank"
>Route berechnen</a>
</p>
我看不出这条消息的来源。
【问题讨论】:
-
我知道这个问题已经得到解答,但如果您不知道,有一个名为 Google Maps Platform API Checker for Google Chrome 的工具,可让您调试您的 Google 地图集成 -> @987654322 @
-
如果我将这个“仅用于开发目的”.map 用于发布的最终项目会怎样?有使用限制吗?我会被禁止吗?有人测试过吗?
标签: google-maps google-maps-api-3