Google Maps v3 API hides ski runs

In any case, to hide the ski slopes from the default Google pages and location maps?

We can hide roads using the featureType road and turn off visibility. But there seems to be no equivalent for ski runs or slopes.

http://techcrunch.com/2013/03/25/google-adds-trail-maps-for-100-additional-ski-resorts-to-google-maps/

+4
source share
1 answer

Here is my hack to hide the ski slopes:

   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" }]
    }
]});

You can see the result here: http://jsfiddle.net/69yG3/2/embedded/result/

+2
source

All Articles