AGM Google maps imagery tiles not loading

2019-07-30 03:04发布

Imagery tiles do not load when the page loads...I have to take some action on the map i.e.(zoom,pan) then the tiles load

AGM initialization in my module

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

My agm-map tag

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

How can I force tiles to load?

1条回答
相关推荐>>
2楼-- · 2019-07-30 03:37

Make sure that when you are using AGM Angular google Maps that you initialize the map with proper lat/lng values...if you do not the map just does nothing, it's especially confusing if you have all the map controls set to "false" like I did.

Mystery solved

查看更多
登录 后发表回答