User:Willem1/Kosmos rendering rules test 2
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 | natural=beach | Polygon (MinZoom=6, Color=#F2ECAC) | |||
Residential | landuse=residential | Polygon (MinZoom=6, Color=#E8CE69) | |||
Heath | natural=heath | Polygon (MinZoom=12, Color=#F37979) | |||
Industrial | landuse=industrial | Polygon (MinZoom=12, Color=#C5C5C5) | |||
Commercial | landuse=commercial | Polygon (MinZoom=12, Color=#EFC8C8) | |||
Retail | landuse=retail | Polygon (MinZoom=12, Color=#F0A5A5) | |||
Cemetery | landuse=cemetery | Polygon (MinZoom=14, Color=#A9CAAE) | |||
VillageGreen | landuse=village_green | Polygon (MinZoom=12, Color=#9AF490) | |||
Allotments | landuse=allotments | Polygon (MinZoom=12, Color=#9AF490) | Volkstuinen | ||
Park | leisure=park | Polygon (MinZoom=12, Color=#9AF490) | |||
Pitch | leisure=pitch | Polygon (MinZoom=14, Color=#AAF4AA) | |||
Wood | natural=wood | Polygon (MinZoom=6, Color=#5BD566) | |||
Forest | landuse=forest | Polygon (MinZoom=6, Color=#5BD566) | Hetzelfde als Wood. | ||
Playground | leisure=playground | Polygon (MinZoom=12, Color=#9AF490) |
Water Features
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Water | natural=water | Polygon (MinZoom=12, Color=#8BCCE5) | |||
River | 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 | waterway=drain | Polyline (MinZoom=13, Color=#8BCCE5, Width=13:1;17:6;19:10;20:20;21:40;22:80, Curved=true) | |||
Stream | waterway=stream | Polyline (MinZoom=13, Color=#8BCCE5, Width=13:1;17:6;19:10;20:20;21:40;22:80, Curved=true) | |||
Canal | 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 | waterway=riverbank | Polygon (Color=#8BCCE5) | |||
Land | natural=land | Polygon (Color=white) |
Other Land Features
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Contours | ele=* | for elevation contours generated by Srtm2Osm | |||
.Major | ValueNum(e,"ele") % 100 = 0 | Polyline (MinZoom=11, Color=#B0AD8852, Width=11:1;12:2, Curved=true) | Major contours (100m ones) | ||
.* | Polyline (MinZoom=12, Color=#B0AD8852, Width=1, Curved=true) | all other contours |
Highways
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
HighwayFootway | 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 | 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 | 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 | 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 | highway=road | Polyline (MinZoom=12, MaxZoom=13, Color=#CCCCCC, Width=12:1) | EliminateSeams | Bij zoom=12 alleen een grijs lijntje. | |
HighwayRoadHoogZoom | 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 | highway=unclassified | Polyline (MinZoom=12, MaxZoom=13, Color=#CCCCCC, Width=12:1) | EliminateSeams | Bij zoom=12 alleen een grijs lijntje. | |
HighwayUnclassifiedHoogZoom | 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 | highway=unclassified area=yes | Polygon (MinZoom=13, Color=#FFFFFF) | EliminateSeams | ||
HighwayUnclassifiedAreaVul | 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 | 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 | 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 | 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 | highway=pedestrian area=yes | Polygon (MinZoom=13, Color=#FFFFFF) | EliminateSeams | ||
.bridge | 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 | highway=residential | Polyline (MinZoom=12, MaxZoom=13, Color=#CCCCCC, Width=12:1) | EliminateSeams | Bij zoom=12 alleen een grijs lijntje. | |
HighwayResidentialHoogZoom | 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 | 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 | 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 | 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 | highway=track | Polyline (MinZoom=15, Color=#FFFFFF, BorderColor=black, Width=15:2;19:5, LineEndCap=Round, LineStartCap=Round) | EliminateSeams | ||
.bridge | bridge=yes | Polyline (MinZoom=15, Color=#FFFFFF, BorderColor=black, BorderWidth=20%, Width=15:2;19:5, Options=TopLevel) | EliminateSeams | ||
HighwayTertiary | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | highway=trunk | Polyline (MinZoom=6, Color=#A25E1F, Width=6:3;13:8;17:14;19:20;20:40;21:80;22:160) | EliminateSeams | ||
.bridge | 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 | 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 | 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 | highway=trunk | Polyline (MinZoom=6, Color=#EBBB8E, Width=6:1;13:3;17:5;19:6;20:12;21:24;22:48) | EliminateSeams | ||
HighwayMotorway | highway=motorway | Polyline (MinZoom=6, Color=#FF0000, Width=6:3;13:8;17:14;19:20;20:40;21:80;22:160) | EliminateSeams | ||
.bridge | 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 | highway=motorway_link | Polyline (MinZoom=6, Color=#FF0000, Width=6:2;13:5;17:9) | EliminateSeams | ||
.bridge | 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 | 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 | railway=rail | Polyline (MinZoom=12, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6) | EliminateSeams | ||
.tunnel | tunnel=yes | Polyline (MinZoom=12, Color=white, DashStyle=solid, BorderColor=gray, BorderDashStyle=Dash, Width=6:1;17:6) | EliminateSeams | ||
Light-Rail | railway=light_rail | Polyline (MinZoom=12, Color=black, DashStyle=solid, BorderColor=gray, Width=6:1;17:2) | EliminateSeams | ||
.tunnel | tunnel=yes | Polyline (MinZoom=12, Color=white, DashStyle=solid, BorderColor=black, BorderDashStyle=Dash, Width=6:1;17:2) | EliminateSeams | ||
Tram | railway=tram | Polyline (MinZoom=12, Color=black, DashStyle=solid, BorderColor=gray, Width=6:1;17:2) | EliminateSeams | ||
.tunnel | tunnel=yes | Polyline (MinZoom=12, Color=white, DashStyle=solid, BorderColor=black, BorderDashStyle=Dash, Width=6:1;17:2) | EliminateSeams | ||
Subway | railway=Subway | Polyline (MinZoom=12, Color=black, DashStyle=Dash, BorderColor=gray, Width=6:1;17:2) | EliminateSeams | ||
.tunnel | tunnel=yes | Polyline (MinZoom=12, Color=white, DashStyle=Dash, BorderColor=gray, BorderDashStyle=Dash, Width=6:1;17:2) | EliminateSeams | ||
RailDisused | railway=disused | Polyline (MinZoom=12, Color=white, DashStyle=Dot, BorderColor=#DDDDDD, Width=10:1;17:4) | EliminateSeams | ||
CableCar | 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 | 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 | 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 | 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 | 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 | boundary=national_park | Polyline (MinZoom=9, Color=green, DashStyle=DashDot, Width=9:1.5;17:6) | |||
Runway | aeroway=runway | Polyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30) | |||
Taxiway | aeroway=taxiway | Polyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10) | |||
Power line | power=line | Polyline (MinZoom=16, Color=#BBBBBB, Width=1) | |||
Power tower | power=tower | Symbol (MinZoom=16, Type=Circle, Size=5, Color=#BBBBBB) | |||
Tree | natural=tree | Symbol (MinZoom=17, Type=Circle, Size=17:3;20:10, Color=#00BB00) |
Places
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
PlaceCountry | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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) |