User:Willem1/Kosmos rendering rules test 2

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

This page contains my rendering rules for Kosmos. Attention: this is just a test.

URL of the rules to use in Kosmos: http://wiki.openstreetmap.org/index.php?title=User:Willem1/Kosmos_rendering_rules

Options

Option Value Comment
MinKosmosVersion 2.1 Minimal version of Kosmos needed to use these rules
LandBackgroundColor #BAE9A9
SeaColor #8BCCE5

Land Areas

Rule Name Targets Selector Template Options Comment
Beach area natural=beach Polygon (MinZoom=6, Color=#F2ECAC)
Residential area landuse=residential Polygon (MinZoom=6, Color=#E8CE69)
Heath area natural=heath Polygon (MinZoom=12, Color=#F37979)
Industrial area landuse=industrial Polygon (MinZoom=12, Color=#C5C5C5)
Commercial area landuse=commercial Polygon (MinZoom=12, Color=#EFC8C8)
Retail area landuse=retail Polygon (MinZoom=12, Color=#F0A5A5)
Cemetery area landuse=cemetery Polygon (MinZoom=14, Color=#A9CAAE)
VillageGreen area landuse=village_green Polygon (MinZoom=12, Color=#9AF490)
Allotments area landuse=allotments Polygon (MinZoom=12, Color=#9AF490) Volkstuinen
Park area leisure=park Polygon (MinZoom=12, Color=#9AF490)
Pitch area leisure=pitch Polygon (MinZoom=14, Color=#AAF4AA)
Wood area natural=wood Polygon (MinZoom=6, Color=#5BD566)
Forest area landuse=forest Polygon (MinZoom=6, Color=#5BD566) Hetzelfde als Wood.
Playground area leisure=playground Polygon (MinZoom=12, Color=#9AF490)

Water Features

Rule Name Targets Selector Template Options Comment
Water area natural=water Polygon (MinZoom=12, Color=#8BCCE5)
River way waterway=river Polyline (MinZoom=5, Color=#8BCCE5, Width=5:1;10:2;17:14;19:16;20:32;21:64;22:128, Curved=true)
Drain way waterway=drain Polyline (MinZoom=13, Color=#8BCCE5, Width=13:1;17:6;19:10;20:20;21:40;22:80, Curved=true)
Stream way waterway=stream Polyline (MinZoom=13, Color=#8BCCE5, Width=13:1;17:6;19:10;20:20;21:40;22:80, Curved=true)
Canal way waterway=canal Polyline (MinZoom=5, Color=#8BCCE5, Width=5:1;10:1;17:10;19:10;20:20;21:40;22:80, Curved=true)
Riverbank area waterway=riverbank Polygon (Color=#8BCCE5)
Land area natural=land Polygon (Color=white)

Other Land Features

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=#B0AD8852, Width=11:1;12:2, Curved=true) Major contours (100m ones)
.* way Polyline (MinZoom=12, Color=#B0AD8852, Width=1, Curved=true) all other contours


Highways

Rule Name Targets Selector Template Options Comment
HighwayFootway way highway=footway Polyline (MinZoom=15, Color=#FFFFFF, BorderColor=black, Width=15:4;19:8;20:16;21:32;22:64, LineEndCap=Round, LineStartCap=Round) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=15, Color=#FFFFFF, BorderColor=black, BorderWidth=20%, Width=15:4;19:8;20:16;21:32;22:64, Options=TopLevel) EliminateSeams
HighwayCycleway way highway=cycleway Polyline (MinZoom=15, Color=#FFFFFF, BorderColor=black, Width=15:4;19:8;20:16;21:32;22:64, LineEndCap=Round, LineStartCap=Round) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=15, Color=#FFFFFF, BorderColor=black, BorderWidth=20%, Width=15:4;19:8;20:16;21:32;22:64, Options=TopLevel) EliminateSeams
HighwayRoadLaagZoom way highway=road Polyline (MinZoom=12, MaxZoom=13, Color=#CCCCCC, Width=12:1) EliminateSeams Bij zoom=12 alleen een grijs lijntje.
HighwayRoadHoogZoom way highway=road Polyline (MinZoom=13, Color=#DDDDDD, BorderColor=gray, Width=13:3;15:7;19:10;20:20;21:40;22:80, LineEndCap=Round, LineStartCap=Round) EliminateSeams
HighwayUnclassifiedLaagZoom way highway=unclassified Polyline (MinZoom=12, MaxZoom=13, Color=#CCCCCC, Width=12:1) EliminateSeams Bij zoom=12 alleen een grijs lijntje.
HighwayUnclassifiedHoogZoom way highway=unclassified Polyline (MinZoom=13, Color=#FFFFFF, BorderColor=black, Width=13:3;15:7;19:10;20:20;21:40;22:80, LineEndCap=Round, LineStartCap=Round) EliminateSeams Bij zoom>13 een witte lijn.
HighwayUnclassifiedArea area highway=unclassified area=yes Polygon (MinZoom=13, Color=#FFFFFF) EliminateSeams
HighwayUnclassifiedAreaVul area highway=unclassified area=yes Polyline (MinZoom=13, Color=#FFFFFF, BorderColor=black, Width=13:3;15:7;19:10;20:20;21:40;22:80, LineEndCap=Round, LineStartCap=Round) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=12, Color=#FFFFFF, BorderColor=black, BorderWidth=20%, Width=13:3;15:7;19:10;20:20;21:40;22:80, Options=TopLevel) EliminateSeams
HighwayPedestrian way highway=pedestrian Polyline (MinZoom=13, Color=white, BorderColor=black, Width=13:3;15:7;19:10;20:20;21:40;22:80, LineEndCap=Round, LineStartCap=Round) EliminateSeams
HighwayPedestrianAreaVul area highway=pedestrian area=yes Polyline (MinZoom=13, Color=#FFFFFF, BorderColor=black, Width=13:3;15:7;19:10;20:20;21:40;22:80, LineEndCap=Round, LineStartCap=Round) EliminateSeams
HighwayPedestrianArea area highway=pedestrian area=yes Polygon (MinZoom=13, Color=#FFFFFF) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=13, Color=lightgray, BorderColor=black, BorderWidth=20%, Width=13:3;15:7;19:10;20:20;21:40;22:80, Options=TopLevel) EliminateSeams
HighwayResidentialLaagZoom way highway=residential Polyline (MinZoom=12, MaxZoom=13, Color=#CCCCCC, Width=12:1) EliminateSeams Bij zoom=12 alleen een grijs lijntje.
HighwayResidentialHoogZoom way highway=residential Polyline (MinZoom=13, Color=#FFFFFF, BorderColor=black, Width=13:3;15:7;19:10;20:20;21:40;22:80, LineEndCap=Round, LineStartCap=Round) EliminateSeams Bij zoom>13 een witte lijn.
.bridge way bridge=yes Polyline (MinZoom=13, Color=#FFFFFF, BorderColor=black, BorderWidth=20%, Width=12:1;13:3;15:7;19:10;20:20;21:40;22:80, Options=TopLevel) EliminateSeams
HighwayService way highway=service Polyline (MinZoom=13, Color=#FFFFFF, BorderColor=black, Width=12:3;13:3;15:7;19:10;20:20;21:40;22:80, LineEndCap=Round, LineStartCap=Round) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=13, Color=#FFFFFF, BorderColor=black, BorderWidth=20%, Width=13:3;15:7;19:10;20:20;21:40;22:80, Options=TopLevel) EliminateSeams
HighwayTrack way highway=track Polyline (MinZoom=15, Color=#FFFFFF, BorderColor=black, Width=15:2;19:5, LineEndCap=Round, LineStartCap=Round) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=15, Color=#FFFFFF, BorderColor=black, BorderWidth=20%, Width=15:2;19:5, Options=TopLevel) EliminateSeams
HighwayTertiary way highway=tertiary Polyline (MinZoom=12, Color=#FCFF00, BorderColor=black, Width=10:3;13:4;17:14;19:20;20:40;21:80;22:160, LineEndCap=Round, LineStartCap=Round) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=12, Color=#FCFF00, BorderColor=black, BorderWidth=20%, Width=10:3;13:4;17:14;19:20;20:40;21:80;22:160, Options=TopLevel) EliminateSeams
HighwaySecondary way highway=secondary Polyline (MinZoom=10, Color=#FFB200, BorderColor=black, Width=9:3;13:6;17:14;19:20;20:40;21:80;22:160, LineEndCap=Round, LineStartCap=Round) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=10, Color=#FFB200, BorderColor=black, BorderWidth=20%, Width=9:3;13:6;17:14;19:20;20:40;21:80;22:160, Options=TopLevel) EliminateSeams
HighwayPrimary way highway=primary Polyline (MinZoom=8, Color=#A25E1F, BorderColor=black, Width=7:2;13:7;17:14;19:20;20:40;21:80;22:160, LineEndCap=Round, LineStartCap=Round) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=8, Color=#A25E1F, BorderColor=black, BorderWidth=20%, Width=7:2;13:7;17:14;19:20;20:40;21:80;22:160, Options=TopLevel) EliminateSeams
.tunnel way tunnel=yes Polyline (MinZoom=8, Color=#A25E1F, Width=7:2;13:7;17:14;19:20;20:40;21:80;22:160, DashStyle=Dash) EliminateSeams
HighwayPrimaryLink way highway=primary_link Polyline (MinZoom=8, Color=#A25E1F, BorderColor=black, Width=7:1;13:5;17:9;19:10;20:20;21:40;22:80) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=8, Color=#A25E1F, BorderColor=black, BorderWidth=20%, Width=7:1;13:5;17:9;19:10;20:20;21:40;22:80, Options=TopLevel) EliminateSeams
HighwayTrunk way highway=trunk Polyline (MinZoom=6, Color=#A25E1F, Width=6:3;13:8;17:14;19:20;20:40;21:80;22:160) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=6, Color=#A25E1F, BorderColor=black, BorderWidth=20%, Width=6:3;13:8;17:14;19:20;20:40;21:80;22:160) EliminateSeams
HighwayTrunkLink way highway=trunk_link Polyline (MinZoom=6, Color=#A25E1F, Width=6:2;13:5;17:9;19:10;20:20;21:40;22:80) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=6, Color=#A25E1F, BorderColor=black, BorderWidth=20%, Width=6:2;13:5;17:9;19:10;20:20;21:40;22:80, Options=TopLevel) EliminateSeams
HighwayTrunkMiddenStreep way highway=trunk Polyline (MinZoom=6, Color=#EBBB8E, Width=6:1;13:3;17:5;19:6;20:12;21:24;22:48) EliminateSeams
HighwayMotorway way highway=motorway Polyline (MinZoom=6, Color=#FF0000, Width=6:3;13:8;17:14;19:20;20:40;21:80;22:160) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=6, Color=#FF0000, BorderColor=black, BorderWidth=20%, Width=6:3;13:8;17:14;19:20;20:40;21:80;22:160) EliminateSeams
HighwayMotorwayLink way highway=motorway_link Polyline (MinZoom=6, Color=#FF0000, Width=6:2;13:5;17:9) EliminateSeams
.bridge way bridge=yes Polyline (MinZoom=6, Color=#FF0000, BorderColor=black, BorderWidth=20%, Width=6:2;13:5;17:9;19:10;20:20;21:40;22:80, Options=TopLevel) EliminateSeams
HighwayMotorwayMiddenStreep way highway=motorway Polyline (MinZoom=6, Color=#FFFC00, Width=6:1;13:3;17:5;19:6;20:12;21:24;22:48) EliminateSeams

Transport

Rule Name Targets Selector Template Options Comment
Rail way railway=rail Polyline (MinZoom=12, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6) EliminateSeams
.tunnel way tunnel=yes Polyline (MinZoom=12, Color=white, DashStyle=solid, BorderColor=gray, BorderDashStyle=Dash, Width=6:1;17:6) EliminateSeams
Light-Rail way railway=light_rail Polyline (MinZoom=12, Color=black, DashStyle=solid, BorderColor=gray, Width=6:1;17:2) EliminateSeams
.tunnel way tunnel=yes Polyline (MinZoom=12, Color=white, DashStyle=solid, BorderColor=black, BorderDashStyle=Dash, Width=6:1;17:2) EliminateSeams
Tram way railway=tram Polyline (MinZoom=12, Color=black, DashStyle=solid, BorderColor=gray, Width=6:1;17:2) EliminateSeams
.tunnel way tunnel=yes Polyline (MinZoom=12, Color=white, DashStyle=solid, BorderColor=black, BorderDashStyle=Dash, Width=6:1;17:2) EliminateSeams
Subway way railway=Subway Polyline (MinZoom=12, Color=black, DashStyle=Dash, BorderColor=gray, Width=6:1;17:2) EliminateSeams
.tunnel way tunnel=yes Polyline (MinZoom=12, Color=white, DashStyle=Dash, BorderColor=gray, BorderDashStyle=Dash, Width=6:1;17:2) EliminateSeams
RailDisused way railway=disused Polyline (MinZoom=12, Color=white, DashStyle=Dot, BorderColor=#DDDDDD, Width=10:1;17:4) EliminateSeams
CableCar way aerialway=cable_car Symbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=20%, BorderColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:3)
DragLift way aerialway=drag_lift Symbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=10%, BorderColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:2)
ChairLift way aerialway=chair_lift Symbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=10%, BorderColor=black, BackgroundColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:2)
Ferry way route=ferry Polyline (MinZoom=8, Color=darkgray, DashStyle=Dot, Width=8:0.1;17:4)

Other Ways

Rule Name Targets Selector Template Options Comment
BoundaryAdministrative way boundary=administrative
.level2 admin_level=2 Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level4 admin_level=4 Polyline (MinZoom=10, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level8 admin_level=8 Polyline (MinZoom=12, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;5:5))
.* Polyline (MinZoom=12, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
BoundaryNationalPark way boundary=national_park Polyline (MinZoom=9, Color=green, DashStyle=DashDot, Width=9:1.5;17:6)
Runway way aeroway=runway Polyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30)
Taxiway way aeroway=taxiway Polyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10)
Power line way power=line Polyline (MinZoom=16, Color=#BBBBBB, Width=1)
Power tower node power=tower Symbol (MinZoom=16, Type=Circle, Size=5, Color=#BBBBBB)
Tree node natural=tree Symbol (MinZoom=17, Type=Circle, Size=17:3;20:10, Color=#00BB00)

Places

Rule Name Targets Selector Template Options Comment
PlaceCountry node place=country Text (MinZoom=3, MaxZoom=7, Color=black, TagToUse=name:nl;name:en;name, FontName=Segoe UI, FontStyle=bold, FontSize=3:7;7:20, OutlineColor=white)
PlaceCity node place=city Text (MinZoom=8, MaxZoom=14, Color=black, TagToUse=name:nl;name:en;name, FontName=Segoe UI, FontStyle=bold, FontSize=7:10;17:30, OutlineColor=white, OutlineWidth=20%)
PlaceTown node place=town Text (MinZoom=11, MaxZoom=14, Color=black, TagToUse=name:nl;name:en;name, FontName=Segoe UI, FontStyle=bold, FontSize=10:10;17:25, OutlineColor=white)
PlaceVillage node place=village Text (MinZoom=12, MaxZoom=14, Color=black, TagToUse=name:nl;name:en;name, FontName=Segoe UI, FontStyle=bold, FontSize=12:10;17:20, OutlineColor=white)
PlaceIsland node place=island Text (MinZoom=7, MaxZoom=14, Color=black, TagToUse=name:nl;name:en;name, FontName=Segoe UI, FontStyle=italic, FontSize=12:10;17:20, OutlineColor=white)
PlaceSuburb node place=suburb Text (MinZoom=13, MaxZoom=15, Color=black, TagToUse=name:nl;name:en;name, FontName=Segoe UI, FontStyle=bold, FontSize=13:10;17:20, OutlineColor=white)
PlaceHamlet node place=hamlet Text (MinZoom=13, MaxZoom=15, Color=black, TagToUse=name:nl;name:en;name, FontName=Segoe UI, FontStyle=bold, FontSize=14:8;17:14, OutlineColor=white)
PlaceLocality node place=locality Text (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name:nl;name:en;name, FontName=Segoe UI, FontStyle=bold, FontSize=14:8;17:14, OutlineColor=white)