2013-02-25 2 views

답변

2

hexblot 맞춤지도 유형의 문서를 보는 그의 제안에 정확했다. 여기에 어떤 통제도없이 빈지도 (흰색 배경)를 갖기 위해 한 일이 있습니다.

function initialize(){ 
    var styles = [{ 
      stylers:[{ color: "#ffffff" }] 
     } 
    ]; 
    var styledMap = new google.maps.StyledMapType(styles); 
    var centerlatlng = new google.maps.LatLng(0, 0); 
    var myOptions = { 
     zoom: 3, 
     center: centerlatlng, 
     disableDefaultUI : true, 
     mapTypeControlOptions: { 
      mapTypeIds: ['map_style'] 
     }, 
     mapTypeId: 'map_style' 
    }; 

    var map = new google.maps.Map(document.getElementById("map"), myOptions); 
    map.mapTypes.set('map_style', styledMap); 
} 
관련 문제