2013-02-17 81 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