From OpenStreetMap Wiki
Jump to: navigation, search


This page contains a set of rendering rules for Kosmos.

URL of the rules to use in Kosmos:


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 Way natural=coastline Polyline (MinZoom=1, Color=#87D2E7, Width=11:1;17:2)
Reservoir Area landuse=reservoir Polygon (Color=#87D2E7)
Basin Area landuse=basin Polygon (Color=#87D2E7)
Water Area natural=water Polygon (Color=#87D2E7)
River Way waterway=river Polyline (MinZoom=5, Color=#87D2E7, Width=5:1;10:2;17:14, Curved=true)
Drain Way waterway=drain Polyline (MinZoom=13, Color=#87D2E7, Width=13:1;17:6, Curved=true)
Stream Way waterway=stream Polyline (MinZoom=13, Color=#87D2E7, Width=13:1;17:6, Curved=true)
Canal Way waterway=canal Polyline (MinZoom=5, Color=#87D2E7, Width=5:1;10:1;17:10, Curved=true)
Riverbank Area waterway=riverbank Polygon (Color=#87D2E7)
Land Area natural=land Polygon (Color=white)


Rule Name Targets Selector Template Options Comment
Contours Way ele=* for elevation contours generated by Srtm2Osm
.Major Way ValueNum(e,"ele") % 100 = 0 Polyline (MinZoom=11, Color=#99C8C6B9, Width=11:1;14:2, Curved=true) Major contours (100m ones)
.* Way Polyline (MinZoom=12, Color=#40C8C6B9, Width=1, Curved=true) all other contours


Rule Name Targets Selector Template Options Comment
Guidepost Node tourism=information information=guidepost hiking=yes Icon (MinZoom=10, IconUrl=, Width=10:2;17:20)
Text (MinZoom=12, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=12:4;17:10, TextLineOffset=-200%)
Guidepost doubleguidepost.png

Marked paths

Rule Name Targets Selector Template Options Comment
TrailsMarkedBlue Way marked_trail=* Polyline (MinZoom=10, Color=blue, Width=13:2;17:4) EliminateSeams
TrailsMarkedBluePlanned Way fixme:marked_trail=* Polyline (MinZoom=10, Color=blue, Width=13:2;17:4) EliminateSeams
TrailsBlazed Way trailblazed=* Polyline (MinZoom=10, Color=blue, Width=13:2;17:4) EliminateSeams