2011-12-14 15 views

答えて

3
google.maps.event.addListener(map, 'zoom_changed', function() { 
    var zoomLevel = map.getZoom(); 
    if (zoomLevel <= 8) { 
    turnVisOn(); 
    } else if (zoomLevel > 8) { 
    turnVisOff(); 
    } 
}); 

ている間オフながら:

var styleArray = [ 
    { 
    featureType: "road", 
    stylers: [ 
     { visibility: "off" } // or "on" 
    ] 
    } 
]; 
map.setOptions({styles: styleArray});