2011-06-11 5 views
0

Google Maps Flash API infoWindow의 문자 간격이 약간 이상합니다. 글자는 매우 밀접하게 흩어져 있습니다. 예를 들어, 두 번 "r"은 "m"처럼 보이고 보입니다. 글자 간격을 조정할 수있는 방법이 있습니까?Google Maps Flash API : InfoWindow Letterspacing

var infoWindowSettings:InfoWindowOptions = new InfoWindowOptions(); 
infoWindowSettings.content = theName; 
infoWindowSettings.hasShadow = true; 
infoWindowSettings.hasCloseButton = true; 
infoWindowSettings.width = 200; 
map.openInfoWindow(map.getCenter(), infoWindowSettings); 

답변

0

그래, 알았어. 아래에 글자 간격 속성을 추가했습니다.

var contentFormat:TextFormat = new TextFormat("Arial", 13); 
    contentFormat.letterSpacing = 1; 


var infoWindowSettings:InfoWindowOptions = new InfoWindowOptions({ 
    strokeStyle: { 
    color: 0x000000 
    }, 
    fillStyle: { 
     color: 0xFFFFFF, 
     alpha: 0.8 
    }, 
    contentFormat: contentFormat, 
     width: 280, 
     hasCloseButton: true, 
     hasTail: true, 
     hasShadow: true 
    });