ThinkGeo.com    |     Documentation    |     Premium Support

How to show country name in map

Hi All,


In Map i can able to show capitals of all countries.


In place of  capitals can i show country names in steed?


 


Can any one help?


 


 



It depends on your data. If you have the column for the country name of the capitals layer, you can. For example, if you are using the WorldCapitals shapefile that comes with the samples, use the "ADMIN_NAME" field. So the code would be, for example: 
  
  capitalsLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("Admin_name", "Arial", 12, DrawingFontStyles.Bold, GeoColor.StandardColors.Black, GeoColor.StandardColors.White, 3, -10, 10);