Create Label with Angle

867 views
Skip to first unread message

DenCop (NL)

unread,
Feb 4, 2010, 8:13:59 AM2/4/10
to MapInfo-L
Hi all,

Is it possible to create an Label with an angle? For every item the
angle can be different.

DenCop

Driver, Greg 9434

unread,
Feb 4, 2010, 11:22:09 AM2/4/10
to mapi...@googlegroups.com
DenCop,

You can rotate labels using the Rotate Labels tool (under Tools -> Tool Manager). This will allow you to select a column in the table which holds the rotation angle value. Alternatively, you can enter a fixed value.

If you need to see how to do it using MapBasic, then have a look at the source code for this tool.

HTH

Greg Driver


NOT PROTECTIVELY MARKED


Hi all,

DenCop

--
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To post to this group, send email to mapi...@googlegroups.com.
To unsubscribe from this group, send email to mapinfo-l+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mapinfo-l?hl=en.

Information about this E-mail
This email and any files or attachments with it are intended solely for the use of the individual(s) or organisation(s) to whom it is addressed.
It may contain information that is confidential or subject to legal and/or professional privilege.
If you have received this email in error please notify the sender and delete it including any files or attachments from your e-mail account or computer.
Any opinions expressed in this email are those of the individual and not necessarily those of Surrey Police.
Surrey Police monitor incoming and outgoing e-mail.

Peter Horsbøll Møller

unread,
Feb 4, 2010, 1:59:23 PM2/4/10
to mapi...@googlegroups.com
And if you don't want to create custom labels to have rotated labels, you need to create a line rotated in the direction you want your text to appear.

There was a thread recently about how to do that:
http://groups.google.dk/group/mapinfo-l/browse_thread/thread/077474c423372f6c?hl=da

Peter Horsbøll Møller
Pitney Bowes Business Insight - MapInfo


2010/2/4 Driver, Greg 9434 <94...@surrey.pnn.police.uk>

DenCop (NL)

unread,
Feb 5, 2010, 2:54:24 AM2/5/10
to MapInfo-L
Thanks Greg, I`ll look into the mapbasic file.

On Feb 4, 5:22 pm, "Driver, Greg 9434" <9...@surrey.pnn.police.uk>
wrote:
> DenCop,
>
>

DenCop (NL)

unread,
Feb 5, 2010, 2:55:07 AM2/5/10
to MapInfo-L
Peter,

I do not understand what you are saying. :-(

DenCop

On Feb 4, 7:59 pm, Peter Horsbøll Møller <mapinf...@horsboll-

Peter Horsbøll Møller

unread,
Feb 5, 2010, 3:46:37 AM2/5/10
to mapi...@googlegroups.com
Am I talking nonsense :-)
 
I was guessing that you want to add labels to a point layer. Unfortunately a point doesn't have a rotation that can be used to rotate the label. MapInfo can rotate labels according to the direction of a line - to make the label follow the line.
 
So to get around this problem, you can convert your point into a line that is rotated using the rotation from a column.
 
Peter Horsbøll Møller
Pitney Bowes Business Insight - MapInfo

2010/2/5 DenCop (NL) <den...@gmail.com>

nc.da...@gmail.com

unread,
Nov 13, 2017, 4:06:42 PM11/13/17
to MapInfo-L
The correct MapBasic syntax is
Set Map Layer layer_id Label Object ID Angle text_angle
where layer_id is a string or integer, ID is the integer row number of the object to which the label belongs, and text_angle is the angle in degrees of the rotated text.

Official documentation of this syntax is found in the MapBasic reference manual under Set Map → Managing Individual Label Properties.

Reply all
Reply to author
Forward
0 new messages