WebAPI v9.0
Is there a way to rotate a label on an individual basis. I have an annotations layer with a column of doubles dedicated for the angle (0-359). These labels go along the outer lines of the polygon and need to be angled appropriately. Also there is a column for font size which I will need to do similar to the angles. Any help would be appreciated.
Label Rotation for WebAPI
Hi Chad,
I think you can create a CustomTextStyle inherit from TextStyle and override the method named ‘DrawCore’.
Here is a sample shows how to achieve your requirements, please check it out.
Source Code:
http://wiki.thinkgeo.com/wiki/source_code_serviceseditionsample_labelingbasedoncolumns_cs_090807.zip
Sample:
http://wiki.thinkgeo.com/wiki/_media/file/ServicesEditionSample_LabelingBasedOnColumns_CS_090807.zip
Wish that’s helpful.
Thanks,
Emil