google-mapsgoogle-maps-api-3google-cloud-consolegoogle-maps-styling

Google Maps API: Styles. Cannot remove all Points of Interests


I am trying to remove all Points of Interest (POI) from a Google Maps via the Google Maps Platform style editor in Cloud Console.

However, when I turn off label visibility for ALL of the POI, some still show up (i.e. Costco Wholesale, Trader Joe's, etc.).

Even if I turn off label visibility for everything (i.e. POI, Political, Infrastructure, Natural), these items still show up.

Is there a way to hide these? Or does Google not allow you to hide certain POI?

Image of the Console


Solution

  • This seems to be a bug in the new style editor. The following JSON works locally.

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

    If you are in a legacy Google Maps project, you should see the following message when creating a new style:

    enter image description here

    You can opt out and use the old style editor and it will work.


    If you don't have the option to opt out, then you are stuck with it.


    Watch this issue and star it to receive feedback.

    Edit — April 4. 2024

    As far as I can tell, this was fixed today by Google.