Describing Colors
Color Identifiers
There are number of ways to specify colors. All of these are valid forms for color identifiers:
rgb, rgba, rrggbb, rrggbbaa, name
where r, g, b, and a are case-insensitive hexadecimal digits representing red, green, blue, and the alpha (opacity) values. Note that 00 means fully transparent and ff means fully opaque or fully colored.
Color name indicates a named color (like yellow or magenta). You can find a list of the named colors at http://lab.mapfluence.com/colors.html.
Here are some examples of legal color identifiers:
| c73d8f |
| fc3 |
| ffcc33bb |
| yellow |
Lists of Colors
There are several places where you might use a list of colors. The format for specifying a list is to separate the colors with commas.
You can also use a pre-defined palette of colors, which you can see at http://lab.mapfluence.com/colors/palette/all. Specify the palette by giving the name of the palette in place of a color list.
Specifying a size
In some places, you want to specify a color and a size. When used with point geometries, the size refers the diameter of the dots used to symbolize them. When used with lines and polygon borders, the size represents the thickness of lines.
In all cases where you want to specify a size, you also need to specify a color for that element. To specify a color and a size, concatenate _size (in pixels) at the end of the color specification. For example:
ff0000_3
would correspond to a red border, point, or line three pixels thick.
For lines, the size can be a float value, as in:
black_0.2
which would correspond to a black line 0.2 pixels wide.