Hello everybody,
I was wondering whether there's any way to hide the POIs from the map, like restaurants and shops, or not.
Thank you
Marco
You can hide the POIs by setting their visibility through the map styles.
Thank you kkopec,
I solved it in this way:
1- created a new variable in my component
public mapStyles = [
{
"featureType": "poi",
"elementType": "labels",
"stylers": [
{
"visibility": "off"
}
]
}
];
2- passed it to the map in this way
<agm-map [styles]="mapStyles"...
Hope this will help others achieve this faster after me :)
Thank you
Marco
Most helpful comment
Thank you kkopec,
I solved it in this way:
1- created a new variable in my component
2- passed it to the map in this way
<agm-map [styles]="mapStyles"...Hope this will help others achieve this faster after me :)
Thank you
Marco