User:Willem1/Kosmos rendering rules test 2

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