谷歌地图 - 删除滑雪道?

时间:2013-08-16 21:35:22

标签: google-maps

是否可以移除滑雪道?我已经使用了向导,但由于在制作向导后添加了滑雪道,我不认为向导已经更新以显示如何关闭滑雪道?

我已阅读文档,或许这是一个疏忽?

2 个答案:

答案 0 :(得分: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/

答案 1 :(得分:0)

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