2013-02-17 82 views

回答

0

通过示例阵列中的问题,以在地图上的styles - 选项:

  map = new google.maps.Map(document.getElementById('map-canvas'), { 
      center: new google.maps.LatLng(48.70727541512677, 
             20.578157256250062), 
      zoom: 7, 
      styles:[ 
    { 
    "elementType": "geometry", 
    "stylers": [ 
     { "hue": "#00ccff" }, 
     { "visibility": "simplified" } 
    ] 
    } 
], 
      panControl: false, 
    zoomControl: true, 
    zoomControlOptions: { 
     style: google.maps.ZoomControlStyle.SMALL 
    }, 
     streetViewControl: false, 
     mapTypeControl: true, 
    mapTypeControlOptions: { 
     style: google.maps.MapTypeControlStyle.DROPDOWN_MENU,

}, 


     mapTypeId: google.maps.MapTypeId.ROADMAP 

});

http://jsbin.com/owaxas/1/edit

+0

多谢,非常感谢! – ovko 2013-02-18 07:00:44