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.
神秘感已解决