AGM Angular Google 地图图像未加载

AGM Angular Google Maps imagery not loading

似乎与 AGM 联系 googleapis.com 失败了,除非我有 googleapis.com 我的 index.html

头部的脚本标签

我模块中的 AGM 初始化

AgmCoreModule.forRoot({
apiKey: 'MyKey',
libraries: ['imagery', 'places']
}),

头部的脚本标签

<script async defer src="https://maps.googleapis.com/maps/api/js? 
key=MyKey=imagery,places">
</script>

如果我不包含脚本标签,我会收到错误...

GET https://maps.googleapis.com/maps-api-v3/api/js/35/10a/imagery.js 
net::ERR_ABORTED 404
Ae @ js? 
v=3&callback=agmLazyMapsAPILoader&key=MyKey&libraries=imagery,places:81
(anonymous) 
zone.js:682 Unhandled Promise rejection: Could not load "imagery". ; Zone: 
<root> ; Task: Promise.then ; Value: Error: Could not load "imagery".

我需要能够独立于此使用 AGM。

非常感谢任何帮助!!

更新

我没有在我的 AgmCoreModule 中正确加载 "libraries"...但是我找不到正确的加载方法

更新

要加载图像图块,您只需设置

[mapTypeId]="satellite" 

现在我的问题是,除非我在地图上放大或缩小,否则不会加载图像图块

这已经通过上面的评论解决了...更多信息在这里