Is there anyway to hide ski runs from the Google default and terrain maps?
We can hide roads using the "featureType" road and setting visibility off. But there doesn't seem to be an equivalent for ski runs or trails.
Is there anyway to hide ski runs from the Google default and terrain maps?
We can hide roads using the "featureType" road and setting visibility off. But there doesn't seem to be an equivalent for ski runs or trails.
这是我隐藏滑雪场的技巧:
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/