2013-07-14 44 views

回答

2

添加樣式到您的myMapOptions

var myMapOptions = { 
       zoom: 16, 
       center: secheltLoc, 
       styles : styles, 
       disableDefaultUI: true, 
       scrollwheel: false   
     } 
+0

謝謝!不知道我怎麼弄不明白。 –

0

適用風格的頁面包含這些行不存在不適用的網頁上:

//Associate the styled map with the MapTypeId and set it to display. 
    theMap.mapTypes.set('map_style', styledMap); 
    theMap.setMapTypeId('map_style'); 

working example