Hi
I have the following scenario where if I add a annotation i.e. a free hand drawing, polygon, rectangle etc. I require a label to be attached to this shape. I did notice that the annotation shapes have a label property which can be made visible however it is positioned in the left corner. My question is, is it possible to set the co-ordinates of this shape to be the rotateCentre co-ordinates of the shape.
I have used the following code to set the label
var point = annRect.rotateCenter;
var label = annRect.get_labels()["AnnObjectName"];
label.set_isVisible(true);
label.set_foreground(lt.Annotations.Core.AnnSolidColorBrush.create("white"));
label.set_background(lt.Annotations.Core.AnnSolidColorBrush.create("red"));
label.set_text("1");
label.set_originalPosition(point);
annRect.labels.AnnObjectName = label;
Any help provided is appriciated
Thank you
Maneka