Rendering Rules

From CommonMap

Jump to: navigation, search

These pages are for CommonMap standard rendering rules.

example for z12: natural things
zoom levels

0 1 2 3 4 5 6 7 8 9 10 11 12 13

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.

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;
stroke-width:2px;

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.

Personal tools