【发布时间】:2016-12-23 01:59:29
【问题描述】:
我并没有尝试使用 Places API Web 服务,但这就是我的所有请求都显示在 API 控制台仪表板上的方式。我正在尝试使用 Javascript api 并加载地点库。
正如我在示例中看到的那样,我正在使用此代码:
<script src='https://maps.googleapis.com/maps/api/js?libraries=places&key=<MYKEYHERE>'></script>
如果我禁用 Places API Web 服务,我的页面将停止工作。我做错了什么?
【问题讨论】:
-
你在参数中使用了地方库试试这个
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script>
标签: javascript api google-maps-api-3