Disabling local points on Google Maps

I currently have a webapp that draws points of interest using api maps, however I noticed a slight annoyance that I would like to disable if possible.

Now, when the google map is loaded, it will show the objects of interest to you and the local business (city hall, pizza hut, etc.). I do not mind the wording designating them, but I do not want these points to be clickable, as if it often happens that people using touch screens accidentally fall into these points

Is there any way to disable this feature?

+7
source share
1 answer

You can disable them using map styling . Specific style will be

[ { featureType: "poi", stylers: [ { visibility: "off" } ] } ] 
+12
source

All Articles