The style of the map is defined for 4 objects. For a complete list of options please use -help. The definitions go into a text file and the -style parameter defines which style file to use.
- upper and lower case are ok
- all sizes are given in pixels (300dpi)
- Nearly all properties have default settings and might so be neglected in the rule file. The defaults are set in the ini file if required.
- Valid colors are SVG colors - to be found in the web-; also valid entries are html color codes (white is ffffff, black is 000000).
some sizes may be given as a range. Meaning that in the smallest scale the largest number will be taken and vice versa. Everything in between will be interpolated.
This applies for the following node properties:
And for the listed way properties:
A rule range can be specified like this:
Objects will only appear up to 1:10000 maps.
Some properties that apply to various objects:
If you want to apply a halo, specify this:
Labels can be processed before drawing, i.e to switch a label to upper case letters.
labeltransform=$label = uc ($label) ;
But you could also divide a given number by 1000, like this:
labeltransform=$label = $label / 1000 ;
Any perl command and function can be applied. The label is provided in variable $label and has to be in the same at the end of the transformation.
A node can be as simple as this:
RULE NODE keyvalue=place=city size=20 color=black label=name labelsize=30
But it could include other information as well:
shape=diamond circle=yes circlecolor=blue circleradius=5000 circlethickness=5
This would draw the node as a diamond and add a blue thin circle with a radius of 5 km around the node.
Possible shapes are:
Possible node properties:
A way rule could look like this:
RULE WAY keyvalue=highway=motorway color=blue size=28 label=shield:icons/shield_ger_bab.def labelsize=60 labeloffset=11 bordercolor=black bordersize=2
Other valid way properties:
Areas will only be drawn if they have a certain size (area). This limit is specified by the parameter (not per rule!!!)
Areas will only be labeled if they have a certain size (area). This limit is specified by the parameter (not per rule!!!)
The property base=yes defines the layer where the area is drawn. Base is drawn before other elements - like houses i.e.
An area rule could be defined like this:
RULE AREA keyvalue=landuse=residential color=lightgray base=yes RULE AREA keyvalue=landuse=cemetery icon=icons/areaCemetery.svg
Other valid area properties:
A route rule could look like this:
RULE ROUTE type=hiking color=blue;green;yellow opacity=100 label=name dash=20,20
This would draw hiking routes with alternating colors with full opacity, dashed. Routes will be labeled with name.
Other valid properties:
- nodeSize (for route stops)