Contents
What do I need to draw labels in TileMill?
For each text-related style there are two required properties: text-name, which specifies what text goes in the labels, and text-face-name, which specifies the typeface (s) will be used to draw the label. (You can see which typefaces are available in the font browser – click the ‘A’ icon on the left button bar.)
How can I change the color of my text in TileMill?
These can be adjusted with the text-fill and text-size properties. To separate your text from the background, it is often useful to add an outline or halo around the text. You can control the color with text-halo-fill and the width of the halo (in pixels) is controlled with text-halo-radius.
Which is an example of object stacking in TileMill?
As an example of this, you can look at the Open Streets DC project that comes with TileMill. The layers roads and roads-label reference the same data, but are separated for correct ordering. For more details on how object stacking works in TileMill, see the Symbol Drawing Order guide.
How do you draw a label in CartoCSS?
In CartoCSS, labelling is handled by a variety of properties beginning with text-. For each text-related style there are two required properties: text-name, which specifies what text goes in the labels, and text-face-name, which specifies the typeface (s) will be used to draw the label.
Can a CartoCSS be applied to a feature layer?
For details, see CartoCSS Properties for Torque Style Maps. These common element CartoCSS properties can be applied to any feature layer in a map. A feature layer is any data layer that contains points, lines, or polygons (not a basemap).
Where can I find a list of CartoCSS properties?
Each CartoCSS map category has its own configurable properties. You can apply multiple symbolizers and properties to the same map layer. Navigate to a selected symbolizer to view a description of the CartoCSS property, sample CartoCSS code, the default value, and the available values.
How does TileMill determine the look of a map?
TileMill uses a language called CartoCSS to determine the look of a map. Colors, sizes, and shapes can all be manipulated by applying their relative CartoCS parameters in the stylesheet panel to the right of the map. Read the CartoCSS manual for a more detailed introduction to the language.