For compatibility reasons, colors are sometimes defined by arrays and sometimes defined by hexadecimal numbers. The latter situation is as follows:
The position of a strike, a city or a station is shown by markers. As an example, the default setting for cities is the following one:
$_BO['points']['whitered1']['point'] = array(3, 2, 'f008', 1, 'fff8');
1 = Circle
2 = Plus
3 = Square
10 = Station sign
20 = Strike sign
Text = Callback function
The size of the marker
Is usually the fill color. When displaying strikes, the color is replaced by the one for the strikes in function of time.
Border width in pixels
Usually the color of the border.
Again, the default setting for cities:
$_BO['points']['whitered1']['font'] = array(7, 1, array('fff8',1,'000c'), 6, -11);
Font size in pixels. When the values ?is ?below 6 non-TTF fonts will be shown..
- true = bold
- 1 = “mono-style”
- other = normal
Either a color name such as ‘f7a’.
Or an array with:
1. Position = Font color
2. Position = Border-width (Pixels)
3. Position = Color of the border
The position of the text relative to the point.
The position of the text relative to the point.
There are some predefined styles: ‘whitered1′, ‘stations_dots_active’, ‘stations_dots_inactive’ …
You can assign them like the following (see details on the cities-page):
$_BO['mapimg'][x]['cities'][1] = $_BO['points']['whitered1'];
Or with strikes:
$_BO['mapimg'][x]['point_style'] = $_BO['points']['whitered1']['point'];
Or you assign your own style:
$_BO['mapimg'][x]['cities'][1]['font'] = array(7, 1, array('fff8',1,'000c'), 6, -11);
$_BO['mapimg'][x]['cities'][1]['point'] = array(3, 2, 'f008', 1, 'fff8');
On strikes, you can omit assignment of the font-style ‘font’ .