0

是否可以移除滑雪道?我使用了向导,但是由于滑雪道是在创建向导后添加的,我认为向导没有更新以显示如何关闭滑雪道?

我已经阅读了文档,也许这是一个疏忽?

4

3 回答 3

1

更新:滑雪道和缆车现在被归类为 POI。 https://issuetracker.google.com/issues/35823580


这是我隐藏滑雪场的技巧:

   map.setOptions({styles: [
  {
     "featureType": "all", // non valid, hide all
     "stylers": [{ "visibility": "off" }]
  },
  {
      "featureType": "administrative",
      "elementType": "geometry",
      "stylers": [{ "visibility": "on" }]
    },{
      "featureType": "landscape",
      "stylers": [{ "visibility": "on" }]
    },{
      "featureType": "road",
      "stylers": [{ "visibility": "on" }]
    },{
      "featureType": "transit",
      "stylers": [{ "visibility": "on" }]
    },{
      "featureType": "water",
      "stylers": [{ "visibility": "on" }]
    }
]});

你可以在这里看到结果:http: //jsfiddle.net/69yG3/2/embedded/result/

于 2014-07-08T07:50:44.043 回答
0

这还不可能,这里已经提出了这个问题:https ://code.google.com/p/gmaps-api-issues/issues/detail?id=5877

于 2014-06-16T10:00:58.040 回答
0

滑雪道和缆车被视为“sports_complex”兴趣点。可以使用以下 JSON 样式删除它们:

[
    {
        "featureType": "poi.sports_complex",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    }
]
于 2021-12-29T05:16:31.853 回答