AGM Google 地图图像块未加载

AGM Google maps imagery tiles not loading

页面加载时图像图块未加载...我必须在地图上执行一些操作,即(缩放、平移)然后图块加载

我的模块中的 AGM 初始化

AgmCoreModule.forRoot({
apiKey: 'MyKey'
}),

我的agm-map标签

   <agm-map  
   [latitude]="lat"
   [longitude]="lng"
   [zoom]="zoom"
   [mapTypeId]="mapType" 
   [mapTypeControl]="mapControls" 
   [zoomControl]="mapControls" 
   [streetViewControl]="mapControls">
   </agm-map>

如何强制加载磁贴?

确保在使用 AGM Angular google 地图时使用正确的 lat/lng 值初始化地图...如果您不这样做,地图将什么都不做,如果您像我一样将所有地图控件都设置为 "false",那将尤其令人困惑。

谜底已解