Specific POI types in google maps

804 Views Asked by At

I only need to display only food cord. Is there any filter for POIs? I have done this so far, but this does not solve my question ...

  [
    {
      \"featureType\": "poi",
      \"elementType\": \"all\",
      \"stylers\": [
        {
          \"visibility\": \"off\"
        }
      ]
    },
    {
      \"featureType\": \"poi.business\",
      \"elementType\": \"labels.icon\",
      \"stylers\": [
        {
          \"visibility\": \"on\"
        }
      ]
    }
  ]
1

There are 1 best solutions below

0
Pagemag On

You can use the Cloud-based maps styling to control the behavior and appearance of points of interest (POIs) on the map. You can use the POI filtering to enable only the Food and drink POI to show in the map. You can achieve this by:

  1. Setting the visibility of Points of interest > All element type- All > Stylers=Visibility - Off enter image description here
  2. Then click the Points of interest-Business-Food & drinks> All > Visibility - On enter image description here