Home Documentation CartoType style sheets Labels

Labels in style sheets

The <label> section in a <layer> section tells CartoType to draw a label and defines its style, including font attributes.

You can have up to two <label> sections in a <layer>. That enables you to draw both a highway shield with the highway reference, and an ordinary name along the road, for example. Use <labelAttrib> to select the correct name for each label, if using more than one.

In its simplest form a label displays only the 'label' attribute of a map object. But you can go much further than that. The labelFormat attribute can select any text attributes and format them in any way, inserting punctuation and changing fonts and styles.

The <label> attributes, in alphabetic order, are: