ThinkGeo.com    |     Documentation    |     Premium Support

Center Justified Label

Is it possible to center justify a label within a polygon?  The first attachment is how it looks now in my current application.  Everything is left justified.  The second attachment is how I would like it to look.  Thanks in advance for any help you could provide.



 


Chad,
 
Please attach your attachments which you mentioned because I don’t find them. 
 
If I don’t see them, I am confused with your said. Because the label is center text align as default when you set TextStyle. I don’t know how you display label, if you use your custom text style please send to us.
 
If you want to let label left align, I think we don’t support it, you can set the offset of text style but it’s not good solution. The relative topic you can look at:
gis.thinkgeo.com/Support/Dis...fault.aspx
 
I made a small sample to show the default is center. 
 
 
Please let me know if you have questions
 
James

1513-TextAlignDemo.zip (10.9 KB)

 


Chad,
 
I have an idea about change the align of label, you know we use center point of polygon as the placement for label, so I just create a point represents center point, and assign text to it, and then I can use point style to easily control the placement of it.
 
I have updated for my sample, you can look at it.
 
Thanks
James

1514-TextAlignDemo_ChangePlacement.zip (11.3 KB)