ThinkGeo.com    |     Documentation    |     Premium Support

TextStyle Rotation Issue

Hi,
I got rotation problem in Point Feature label.
I am applying textstyle to the Point Feature.

Code ::
TextStyle tMain = new TextStyle(“wypt”, new GeoFont(“Arial”, 8), new GeoSolidBrush(GeoColors.Black));
tMain.Name = “WayPointsTextStyleRoute”;
tMain.HaloPen = new GeoPen(GeoColor.SimpleColors.White, 2);
tMain.RotationAngle =321;
tMain.XOffsetInPixel = 20;
tMain.YOffsetInPixel = 5;
tMain.BestPlacement = true;
tMain.OverlappingRule = LabelOverlappingRule.NoOverlapping;
tMain.DuplicateRule = LabelDuplicateRule.NoDuplicateLabels;

Result ::

Observe ‘ANRUP’ point name should come beside the Point. But it’s coming on line.
If we Zoom in to point, Point name coming correctly. But if we Zoom out it’s getting like that.

Please check and resolve this issue.

Thanks,
Riyaz

Hi Riyaz,

From your screen shot, I hadn’t found the point for ANRUP, it looks like just the label for the line.

Please create a really simple sample with your data which can reproduce this, so we can quickly look into it and see where is the problem.

Regards,

Don

Hi Don,
it’s resolved. it’s my mistake. I applied textstyle to Point and Line feature.

Thanks,
Riyaz

Hi Riyaz,

I am glad to hear that works.

Regards,

Don