Google Maps allows Points of Interests such as Restaurants and stuff to appear clickable and displays their infowindows when clicked which is not what I want. I need only the infowindows attached to my polygons to be clickable and pop open infowindows. I noticed that a way of fixing this would be changing the style of the google maps:
[
{
featureType: "poi.business",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
]
but infowindows still appeared for things like attractions and other random clickable things, how would I be able to disable the infowindows for things like these? Or can you just use featureType: "poi" and featureType: "transit" to set the visibility to off to fix this issue?