The Labels theme attaches a text label to all themed items; the label text is the value of a property or an expression.
Click Home > Add Theme > Annotation and select Labels.
Click Next to open the Property/Expression dialog.
Click the fx button to display the Pick Property or Expression Builder dialog.
Select a Property or enter an Expression and click OK.
Choose the parameters for the Label's appearance and placing:
Press the fx button to display the Pick a Property or Expression Builder dialog.
Select either the Property or Expression to be used.
The Expression Builder dialog allows you to set a filter so that only attributes with specific values (or range of values) are included in the theme.
This could be a range of areas, a date range or a specific date.
The name of the theme as shown in the Maps Control Bar.
|This section defines the properties of the text|
Use the drop down box to select the font that the text labels will use.
Sets the point height of the labels
Enable to make text labels a fixed height on screen/paper independent of the current display scale (ie., it always appears the same size on screen no matter how much you are zoomed in or out).
The Markup option allows a single Text Item to have multiple states, e.g. Bold, Italic, etc., and/or multiple colours; and/or multiple fonts.
These states are:
Example of text styles: *Bold text* _Italic text_ ^superscript^ ~subscript~ +underlined+ -strikeout-
+_*Bold italic underlined*_+
Area = 25^2^
Example text with a -strikeout- used.
Characters can be "escaped" (i.e. have their markup meaning ignored) by prefixing with a \, for example:
*this text is bold* but \*this text isn't (it has an asterisk before and after it instead)\*
Controls the alignment of the text.
Controls the style of the text. The first group of four buttons define: Bold, Italic, Underlined, Strikethrough. The second group of three buttons define: Opaque, Box, Outline
If you choose Opaque text, you can select a Brush for the background. The Brush is selected in Advanced settings >Miscellaneous in the right-hand pane:
If you choose Box text, you can select a Pen for the leader line. The Pen is selected in Advanced settings >Miscellaneous in the right-hand pane:
|Fill Brush||Defines the fill colour and outline of the text. Sets the background (fill) colour for opaque text labels. To view or edit the brush drop down the combo-box list, and press the right arrow at the bottom.|
|Outline Pen||Defines the outline of the text (available for Outline text only). Sets the foreground (text) colour for all text labels. To view or edit the Pen drop down the combo-box list, and press the right arrow at the bottom.|
|Allow labels to wrap at either a space or a tab character. You can enter your own character here, for example a comma. To remove a character from the Character box highlight it and press Delete.|
Labels can be automatically wrapped at the selected character at a fixed length (in characters) as specified in the Length box or at the first appearance of the chosen character after a minimum length (in characters).
Effect of applying Wrapping:
Check the Allow tickbox to allow overlapping text labels to be drawn.
Available when Allow is not selected. This is a buffer used in overlap calculations, this prevents touching, or near touching, labels.
This defines the alignment. Select from the options available on the drop-down menu.
Select Custom to activate the Priorities button.
Priorities allows you to visually change the alignment. Any location set to 0 is not used in the alignment process, locations set to 1 will have a higher priority than those locations set to 2. The OK button is disabled if all locations are set to 0, at least one location must have a priority of either 1 or 2.
Offsets label from item and draws a connecting line. The offset is measured in text points.
|Flip inverted text||
Should text which is upside down be inverted? True/False.
Gives a placement option for labelling items with line geometry. Select from: Start, Middle, End, Along.
The following screen shots illustrate the effect of each of these settings:
Labels placed at the Start of each LineString:
Labels placed at the Middle of each LineString:
Labels placed at the End of each LineString:
A quick method of making label placement at the end for an entire overlay is to check the Draw labels at the end tickbox in the Themes tab of the Overlays dialog. See Themes - Draw labels at the end.
Labels placed at the Along each LineString:
When labels are applied to lines which extend beyond the current screen view (eg contours) the Along setting will apply a Label Placement Algorithm.
The maximum angle between consecutive characters when labelling along linear geometry.
Should labels be rotated to align with the linear geometry being labelled? True/False.
In the following diagrams, the RoadName$ property is placed at the Middle of each LineString item. In this case Rotate labels is set to the default value of False:
In this case Rotate labels is set to True:
Rotate labels has no effect if Label placement is set to Along as the label text will always follow the LineString.
Select True to automatically discard any labels that are larger than the item being labelled. The item size applies in both X and Y directions.
These diagrams illustrate the effect of the 'Greek' labels to True/False setting:
'Greek' labels set to False:
'Greek' labels set to True but the Y direction is too small to display the label (X direction is large enough but both X and Y directions must be sufficiently large):
'Greek' labels set to True where both X and Y directions are sufficiently large to display the label:
If the label is bigger than the item it is labelling, the label does not show.
Set 'Greek' labels to True to enable this control. As you zoom out the features get smaller and labels become invisible.
|Box Padding||Padding around the label box measured in pixels (maximum of 1000)|
The Brush used to cover any Polygon covered by the Item. This is only valid when Styles is set to Opaque, see Styles section above.
|Character Spacing||Allows the adjustment of white space between characters. Decimal range 1 to 10.|
Should duplicate label strings be skipped? True/False. Set to True to skip the second and subsequent occurrences of a label string to prevent any duplicated labels being displayed.
If you have Ordnance Survey ITN or Meridian 2 data and label the network you will see multiple labels for the same street name. By setting Hide duplicates to True only one label is shown, i.e. "Brunswick Ter", "Kingsway" and "Western St" are only shown once.
|Horizontal||Set to True to force labels to appear horizontal. This is specifically useful if you’ve rotated the axes on your polygons.|
|Label multiple parts||
Should each part of multi-part item be labelled? True/False.
|Line spacing||The line spacing used for multi-line text.|
|Move to Output|
The Pen used to draw the Item. This is only valid when Styles is set to Box, see Styles >Styles section above.
|X offset /Y offset||
Offsets the labels from the item and draws a connecting line (if specified in Leader > Offset). These offsets are measured in real world units (typically metres). Enter X and/or Y values in this box or click the ... button to display the Expression Builder dialog if the X/Y offset value(s) are to be entered as an expression.
In this section you can use simple properties or expressions to control the label Alignment, Height and Rotation.
Note: Alignment, Height and Orientation are only active when Use Item styles is set to True.
Alignment - Enter a number in this box to override the label alignment. The numbers that may be used are:
0 = Top left
The following diagram shows the Alignment numbering effect using a Cross symbol as an example:
If an expression is to be used to define Alignment, press the ... button to display the Expression Builder dialog and enter an expression to override the default style.
|Height||A height numeric value or an expression to override the label height.
Enter a label height value in real world units (typically metres) in this box or, if an expression is to be used, press the ... button to display the Expression Builder dialog. Enter an expression to derive the label height which will override the default style.
Enter an orientation value in this box or, if an expression is to be used, press the ... button to display the Expression Builder dialog. Enter an expression to derive the label rotation.
A positive number will rotate the label in that number of degrees in an anti-clockwise direction. A negative number will rotate the label in that number of degrees in a clockwise direction.
|Use Item styles||
Set this value to True if you wish to use the Override style settings (Alignment, Height and Orientation) of the item being labelled (rather than the Label Theme styles).
The Filter... button displays the Expression Builder dialog to enable a filter be set. For example entering _area#>1000 in the dialog will apply the label theme to only those Polygons with an area greater than 1000.
The Scales... button displays the Scale Thresholds dialog to allow you to choose the minimum and maximum scale thresholds between which the theme is displayed.
Example of a Labels theme
The following example shows all buildings with a Label Text property with a label showing that name.
In this example Ordnance Survey Master Map data is used. A label will be put against buildings on the map base, using the property LABEL_TEXT, or LABEL_TEXT$.
Once the Label theme has been created you can Explode it to create individual labels for each item which can then be styled separately. The Explode command is available from the Maps Control Bar local menu:
Note: Any exploded theme will become an internal overlay.
Click here for Labels Theme properties.