0
我試圖在使用angular-google-maps時禁用所有興趣點,它在等待地圖後嘗試使用GoogleMapsAPIWrapper
服務加載:在angular-google-maps模塊中禁用所有興趣點不起作用
this.mapsLoader.load().then(() => {
this.gm.setMapOptions({
styles: [
{
featureType: 'poi',
stylers: [
{
visibility: 'off'
}
]
},
{
featureType: 'transit.station',
elementType: 'all',
stylers: [
{
visibility: 'off'
}
]
}
]
});
});
但是,這似乎什麼都不做。我已經瀏覽了回購協議中的問題,但沒有找到答案。
我在做什麼錯?
秀也是碼 – scaisEdge