Hi.
Use node items for shapes as labels.
Here is an example:
http://jsfiddle.net/oxzh9ue8/
You probably would like to play with following node item properties:
scaleWithSize
,
scaleWithZoom
,
textStyle.font
.
In some cases you will want to adjust label location as some countries does have large areas or curved ones or islands further away from mainland. As the position of item is calculated automatically in the center, it could we misleading in some cases. E.g. USA and Alaska.
Use px
and py
to adjust relative item position.