ThinkGeo.com    |     Documentation    |     Premium Support

Placement of label on line

Hi,
i have a line-feature which has to get “labeled” with a distance-text.
I have defined a textstyle for that and the text is displayed properly.
My problem is that the line is a simple thin line and that the label “overlaps” the line (so that the text somehow looks like striked-through). How can i control the placement of the labels?

An help is appreciated.

Regards,
Andreas

Hi Andreas,

I think you means you don’t want to place the label in the center of line.

You should want to set this property: textStyle.YOffsetInPixel, which can help you adjust the label position.

Wish that’s helpful.

Regards,

Don

Hi Don,

yes, that was exactly what i was looking for.

Thank you.

Regards,
Andreas

Hi Andreas,

I am glad the hear that’s helpful.

Any question please let us know.

Regards,

Don