본문

180907(금) - Google Maps (Hiding Map Features with Styilng)

Google Maps


Hiding Map Features with Styling

- features change 뿐만 아니라 hide 도 가능

- 마찬가지로 normal  map type에서만 동작하며, indoor maps에서는 적용안된다.


Pass a JSON style object to your map

<resources>
 
<string name="style_json">
  [
    {
      \"featureType\": \"poi.business\",
      \"elementType\": \"all\",
      \"stylers\": [
        {
          \"visibility\": \"off\"
        }
      ]
    }
  ]
 
</string>
</resources>
<resources>
 
<string name="style_json">
  [
    {
      \"featureType\": \"poi.business\",
      \"elementType\": \"all\",
      \"stylers\": [
        {
          \"visibility\": \"off\"
        }
      ]
    },
    {
      \"featureType\": \"transit\",
      \"elementType\": \"labels.icon\",
      \"stylers\": [
        {
          \"visibility\": \"off\"
        }
      ]
    }
  ]
 
</string>
</resources>


공유

댓글