有没有从 Google 默认和地形图中隐藏滑雪道?
我们可以使用“featureType”道路隐藏道路并设置可见性。但是似乎没有滑雪道或步道的等价物。
http://techcrunch.com/2013/03/25/google-adds-trail-maps-for-100-additional-ski-resorts-to-google-maps/这是我隐藏滑雪场的黑客:
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/
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(61条)