User:LukasK/Kosmos

From OpenStreetMap Wiki
Jump to navigation Jump to 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)