Google地图中缺少API密钥

问题描述 投票:1回答:1

我在Google地图上有一个Drupal主题。但是该地图缺少api键,当我打开Drupal页面时,我看到了。

enter image description here

我有一个包含gmap.js文件的Drupal主题。

是否可以在此处进行更改。

我尝试写api=API_KEY;当然是用我自己的密钥替换了API_KEY。

有人知道吗?

google-maps google-maps-api-3 drupal drupal-8 drupal-theming
1个回答
0
投票

key=API_KEY。这是来自Google的示例:

 <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"
    async defer></script>
© www.soinside.com 2019 - 2024. All rights reserved.