Rendering Rules
From CommonMap
These pages are for CommonMap standard rendering rules.
| zoom levels | ||
|---|---|---|
Contents |
How to edit the rendering rule
1st. select tags
First of all you need to select tag by wiki's item *. For example,
* {{tag|highway|tertiary}}
is selecting all elements having highway=tertiary.
* {{tag|highway|construct}}
** {{tag|construct|tertiary}}
is selecting all elements having highway=construct and construct=tertiary.
* {{tag|highway||primary|secondary}}
is selecting all elements having highway=primary or highway=secondary.
2nd. select drawing features
There is 3 types of templates for rendering styles.
- Template:style:area (Fill the area and displaying caption or icon at the center. For node type, the caption and icon are placed there.)
- Template:style:line (Draw line structure. way and relation only.)
- Template:style:circle (place a circle at the location. node only.)
use them to specify how to draw:
* {{Tag|highway|track}}
** {{Tag|tacktype|grade3}}
{{style:line
|core-color=#c0ffc0
|core-width=2
}}
The wiki is shown on this wiki as:
| e=way | casing | core | caption | example |
|---|---|---|---|---|
| line |
none |
stroke:#c0ffc0; |
none |
|
It will refract to
CommonMap-z##.xml rule by user nazotoko.
3rd. arrange layer order
Topper is lower layer. So describe background type (landuse=*) at the top of the page and captions and icons are at the bottom of the page.


