ThinkGeo.com    |     Documentation    |     Premium Support

Road Labeling Issue

Hello,


I have a small problem with road labeling. Labels are not aligned well with the middle line of the road as seen in the image below. 


They are offset from the center line a few pixels, but I would like them to be on the center line of the road.


Any suggestions ?


 



 


 











Hakan,


 


It can be fixed by setting the offset of the TextStyle. For example,





austinStreetsLabelLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("FENAME", "Arail", 12, DrawingFontStyles.Bold, GeoColor.StandardColors.Black, GeoColor.SimpleColors.Black, 1, 0,1);



            


The last two parameters “xOffset, yOffset” is to set the labels’ offset from the default center point. Any question, please let me know.


 


Thanks,


 


Howard




Sorry, I missed that quite obivous property in the API manual :)


Thanks.


Hakan


 



Hi Hakan, 
  
 Don’t worry, please feel free to ask us if you have more questions. 
  
 Thanks 
  
 Howard