User:LukasK/Kosmos

From OpenStreetMap Wiki
Jump to: navigation, search

Introduction

This page contains a set of Kosmos rendering rules for a climbing guide map.

Options

Option Value Comment
MinKosmosVersion 2.1 Minimal version of Kosmos needed to use these rules
LandBackgroundColor #F8F8F8
SeaColor #B5D6F1

Land Areas

Rule Name Targets Selector Template Options Comment
Scrub Area natural=scrub Polygon (Color=#99EE9C)
Residential Area landuse=residential Polygon (Color=#DCDCDC)
Industrial Area landuse=industrial Polygon (Color=#FEADB8)
Forest Area landuse=forest Polygon (Color=#99DB9C)
Cemetery Area landuse=cemetery Polygon (Color=#A9CAAE, BackgroundColor=#75AC7D, HatchStyle=DashedVertical)

Water Features

Rule Name Targets Selector Template Options Comment
Water Area water=lake Polygon (Color=#54AFFF)
Stream Way water=stream Polyline (MinZoom=13, Color=#54AFFF, Width=13:1;18:2, Curved=true)

Other Land Features

Rule Name Targets Selector Template Options Comment
Fence Way barrier=fence Polyline (MinZoom=15, Color=brown, Width=12:0.5;17:2, DashStyle=Dot)
Contours Way ele=* for elevation contours generated by Srtm2Osm
.Major Way ValueNum(e,"ele") % 100 = 0 Polyline (MinZoom=11, Color=#B0835B1E, Width=11:1;12:2, Curved=true) Major contours (100m ones)
.* Way Polyline (MinZoom=12, Color=#B0835B1E, Width=1, Curved=true) all other contours

Highways

Rule Name Targets Selector Template Options Comment
HighwayPath Way highway=path Polyline (MinZoom=15, Color=#505050, DashStyle=Dash, Width=15:1;18:2, Curved=true) EliminateSeams
HighwayTrack Way highway=track Polyline (MinZoom=13, Color=#505050, Width=13:1;18:3, Curved=true) EliminateSeams
HighwayStreet Way highway=street Polyline (MinZoom=12, Color=#F4F4F4, BorderColor=gray, Width=12:1;18:5) EliminateSeams
HighwayTertiary Way highway=tertiary Polyline (MinZoom=10, Color=#F7F496, BorderColor=gray, Width=10:1;18:8, Curved=true) EliminateSeams

Transport

Rule Name Targets Selector Template Options Comment
Rail Way railway=rail Polyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6) EliminateSeams
.tunnel Way tunnel=yes Polyline (MinZoom=6, Color=white, DashStyle=solid, BorderColor=gray, BorderDashStyle=Dash, Width=6:1;17:6) EliminateSeams

Other Ways

Rule Name Targets Selector Template Options Comment
BoundaryAdministrative Way boundary=administrative
.national admin_level=national Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)

Buildings

Rule Name Targets Selector Template Options Comment
BuildingAny Area building=* Polygon (MinZoom=13, Color=thistle, BorderColor=#6B5B8E, BorderWidth=1)
Text (MinZoom=16, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=16:6;17:10, TextMode=AreaCenter)

Climbing

Rule Name Targets Selector Template Options Comment
Boulder Area nature=boulder Polygon (MinZoom=16, Color=#CCAE9D, BorderColor=#AA4100, BorderWidth=1, Curved=true)
Rock Way nature=rock Polyline (MinZoom=14, BorderColor=#AA4100, Color=#AA4100, Width=14:1;18:3, BorderWidth=200%, Curved=true )
BoulderLabel Node label=yes Text (TextMode=Node, MinZoom=17, Color=black, TagToUse=mark, FontName=Arial, FontStyle=regular, FontSize=15:8;18:12)