Google maps Can';使用api键不显示Google地图

Google maps Can';使用api键不显示Google地图,google-maps,dictionary,google-maps-api-3,Google Maps,Dictionary,Google Maps Api 3,我有一个问题,以显示谷歌地图使用api键 控制台显示: "Google Maps API warning: NoApiKeys https ://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys" 我的剧本是这样的: script(async='', defer='', src='https://maps.googleapis.com/maps/api/js?key=AIzaSyD7

我有一个问题,以显示谷歌地图使用api键

控制台显示:

"Google Maps API warning: NoApiKeys https ://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys"  
我的剧本是这样的:

script(async='', defer='', src='https://maps.googleapis.com/maps/api/js?key=AIzaSyD7E9zHPtSADzjHAsOz7fvQTmplo2XpwWk&callback=initMap')
function initMap() {
    var mapOptions = {
        zoom: _zom,
        center: new google.maps.LatLng(_Lat, _Lng),
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        scrollwheel: false,
        panControl: false,
        streetViewControl: false,
        mapTypeControl: true
    };
}
我试图更改密钥,我尝试将域名分配给密钥,也尝试不使用域名


PS:当我创建密钥时,我选择浏览器密钥

您报告的错误没有任何意义。您的API中有一个密钥include。请提供一个例子来说明这个问题。是的,这让人困惑,它以前是工作的。有没有办法不回调api键旁边的initmap方法?从api的包含中删除
async defer
和回调,然后调用initmap
onload
。您能否演示如何在加载时调用initmap,因为我试过了,但得到的错误是initmap不是函数,非常感谢您的时间;)