I'm having trouble disabling all points of interest on my map using angular-google-maps. I am attempting to utilize the GoogleMapsAPIWrapper
service after waiting for the map to fully load:
this.mapsLoader.load().then(() => {
this.gm.setMapOptions({
styles: [
{
featureType: 'poi',
stylers: [
{
visibility: 'off'
}
]
},
{
featureType: 'transit.station',
elementType: 'all',
stylers: [
{
visibility: 'off'
}
]
}
]
});
However, it seems that my code is not achieving the desired result. I have searched through the issues in the repository but have been unable to find a solution.
What could be causing this issue?