Menu

Label

Agnar Renolen

Label

The Label element provides a way of adding any arbitrary text elements to the frame, such as a title.

Attributes

font

Specifies the name of the font to be used.

size

Specifies the size of the font to be used, in paper units.

color

Specifies the color of the label.

anchor

Specifies an anchor point relative to the main frame of which the text will be placed relative to. The following values are legal:

  • top-left
  • top-center (default)
  • top-right
  • center-left
  • center-right
  • bottom-left
  • bottom-center
  • bottom-right
offset

Specifies, in paper units, the distance from the main frame to the label. Positive values are outwards. Labels anchored to the corners of the main frame, are offset diagonally from the corner, but at a distance measured perpendicular to the main frame sides.

Default value is 0pt.

orientation

Specifies the text orientation. The following three values are legal:

  • outward - the text will be placed with its bottom towards the main frame.
    A label anchored to the bottom and oriented outward will be placed upside down.
  • inward - the text will be placed with its top upwards the main frame.
    A label anchored to the top and oriented inward will be placed upside down.
  • horizontal (default) - the text will be placed horizontally.
shift

Specifies, in paper units, an additional shift from the reference point and the text point. Positive values is in the direction of the text. Default value is 0pt.

align

Specifies text-alignment for the label. Legal values are

  • left
  • right
  • center
  • auto (default) - determined from the anchor point.

Content

This is one of two elements that contain any text, which is the text of the label.

Example

<Label font="Times-Bold" 
       size="36pt" 
       anchor="top-center"  
       offset="15mm" 
       orientation="horizontal" 
       shift="0" 
       align="center">Bymarka</Label>

Related

Wiki: MapFrame

MongoDB Logo MongoDB