2013-07-14 48 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