AGM Google地图图像图块未加载 [英] AGM Google maps imagery tiles not loading

查看:115
本文介绍了AGM Google地图图像图块未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

页面加载时,图像图块不会加载...我必须在地图上执行一些操作,例如先缩放(缩放,平移),然后图块加载

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初始化

AGM initialization in my module

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

我的agm-map标签

My agm-map tag

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

如何强制瓷砖加载?

推荐答案

请确保在使用AGM Angular谷歌地图时,您使用正确的经度/纬度值初始化地图...没什么,如果像我一样将所有地图控件都设置为"false",则尤其令人困惑.

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.

神秘感已解决

这篇关于AGM Google地图图像图块未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆