Hi Paul,
The rotation point is the defined lat/lon point, so if you want to
control where your text is relative to that point, you can use a offset
render type, where you give a pixel offset as well as the lat/lon
point. I don't think you'd have to give a horizontal offset if you
choose center justification, but you might have to supply a vertical
offset to put the center of the text on the lat/lon point. You also may
have to create the OMText object, generate it to figure out how tall it
is (pixelwise), and then reset the vertical offset and regenerate().
You should only have to do that once, though.
Cheers,
Don
On Monday, October 22, 2001, at 11:05 PM, Paul Chisholm wrote:
> I am struggling a bit with a problem. I want to place a piece of text
> in a layer with the text centred on a point. That is the centre of the
> text, not the mid-point of the baseline. I then want to rotate the text
> about the centre point.
>
> I have tried some things but cant seem to come up with an acceptable
> solution. The point I want to centre the text on is expressed as a
> Lat/Long.
>
> From my testing it seems the text is rotated about the top of the text.
>
> Paul
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Donald Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Tue Oct 23 07:51:26 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT