Google Maps Api 3,删除地点

时间:2012-09-07 13:42:37

标签: google-maps google-maps-api-3

如何从地图(Google API 3)中移除所有地方,例如政府,商店egp>

1 个答案:

答案 0 :(得分:1)

使用styled map。关闭POI标签。

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