User:Vibrog/Kosmos-rules/signposts
Jump to navigation
Jump to search
Introduction
This page contains a set of rendering rules for Kosmos.
URL of the rules to use in Kosmos: http://wiki.openstreetmap.org/index.php?title=User:Vibrog/Kosmos-rules/dntskilt
Options
| Option | Value | Comment |
|---|---|---|
| MinKosmosVersion | 2.1 | Minimal version of Kosmos needed to use these rules |
| LandBackgroundColor | white | |
| SeaColor | #87D2E7 |
Water Features
| Rule Name | Targets | Selector | Template | Options | Comment |
|---|---|---|---|---|---|
| Coastline | natural=coastline |
Polyline (MinZoom=1, Color=#87D2E7, Width=11:1;17:2) | |||
| Reservoir | landuse=reservoir |
Polygon (Color=#87D2E7) | |||
| Basin | landuse=basin |
Polygon (Color=#87D2E7) | |||
| Water | natural=water |
Polygon (Color=#87D2E7) | |||
| River | waterway=river |
Polyline (MinZoom=5, Color=#87D2E7, Width=5:1;10:2;17:14, Curved=true) | |||
| Drain | waterway=drain |
Polyline (MinZoom=13, Color=#87D2E7, Width=13:1;17:6, Curved=true) | |||
| Stream | waterway=stream |
Polyline (MinZoom=13, Color=#87D2E7, Width=13:1;17:6, Curved=true) | |||
| Canal | waterway=canal |
Polyline (MinZoom=5, Color=#87D2E7, Width=5:1;10:1;17:10, Curved=true) | |||
| Riverbank | waterway=riverbank |
Polygon (Color=#87D2E7) | |||
| Land | natural=land |
Polygon (Color=white) |
Contours
| Rule Name | Targets | Selector | Template | Options | Comment |
|---|---|---|---|---|---|
| Contours | ele=* |
for elevation contours generated by Srtm2Osm | |||
| .Major | ValueNum(e,"ele") % 100 = 0 | Polyline (MinZoom=11, Color=#99C8C6B9, Width=11:1;14:2, Curved=true) | Major contours (100m ones) | ||
| .* | Polyline (MinZoom=12, Color=#40C8C6B9, Width=1, Curved=true) | all other contours |
Signposts
| Rule Name | Targets | Selector | Template | Options | Comment |
|---|---|---|---|---|---|
| Guidepost | tourism=information information=guidepost hiking=yes |
Icon (MinZoom=10, IconUrl=http://wiki.openstreetmap.org/images/9/91/Guidepost_doubleguidepost.png, Width=10:2;17:20) Text (MinZoom=12, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=12:4;17:10, TextLineOffset=-200%) |
Marked paths
| Rule Name | Targets | Selector | Template | Options | Comment |
|---|---|---|---|---|---|
| TrailsMarkedBlue | marked_trail=* |
Polyline (MinZoom=10, Color=blue, Width=13:2;17:4) | EliminateSeams | ||
| TrailsMarkedBluePlanned | fixme:marked_trail=* |
Polyline (MinZoom=10, Color=blue, Width=13:2;17:4) | EliminateSeams | ||
| TrailsBlazed | trailblazed=* |
Polyline (MinZoom=10, Color=blue, Width=13:2;17:4) | EliminateSeams |