从Google Maps移除巴士站图标

时间:2019-06-15 19:08:47

标签: android google-maps

我正在开发一个用于显示公交车路线的应用程序。我想禁用所有公交车站图标。我这样做的原因不是并不是每个公交车站都正确地放置在我的城市中,并且某些公交车站没有显示,因此我想禁用所有公交车站并使用标记逐一输入。

我搜索了一下,发现了这个is it possible to remove the default points of interest from Android google map

但是它并不能满足我的实际需求

1 个答案:

答案 0 :(得分:1)

map.setOptions({ styles:  {
      featureType: "transit.station.bus",
      stylers:  [{ "visibility": "off" }]
}});

希望获得帮助!