Kosmos postal code rendering rules/ch

From OpenStreetMap Wiki
Jump to: navigation, search

See Kosmos Rendering Help for help. You will need to download the latest version of Kosmos (1.10 or above) to use these rules since they are not compatible with previous versions.

Information

These are rendering rules for Kosmos interpreting postal_code=*. Codename return_to_sender. Only swiss postal code-system (numbers 0000 - 9999) will be displayed. Displaying may also work for other countries. It's not complete and update is at least monthly. Contact user:Bahnpirat for question on these rules.

Update: 2008-06-27

Water Features

Rule Name Targets Selector Template Options Comment
Coastline Way natural=coastline Polyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)
Water Area natural=water Polygon (Color=lightblue)
River Way waterway=river Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true)
Drain Way waterway=drain Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Stream Way waterway=stream Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Canal Way waterway=canal Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:1;17:10, Curved=true)
Riverbank Area waterway=riverbank Polygon (Color=lightblue)
Land Area natural=land Polygon (Color=white)
Border 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)

POIs

Rule Name Targets Selector Template Options Comment
PostOffice Node amenity=post_office Icon (MinZoom=11.5, IconUrl=http://wiki.openstreetmap.org/images/b/b4/GCR_COMM_POSTO.png, Width=11:10;13:20;15:20)
Text (MinZoom=13, Color=black, TagToUse=name;ref, FontName=Trebuchet MS, FontStyle=Italic, FontSize=14:6;17:10, TextLineOffset=-200%)
GCR COMM POSTO.png

Highways

Rule Name Targets Selector Template Options Comment
HighwayMotorway Way highway=motorway EliminateSeams
.Bridge bridge=yes Polyline (MinZoom=8, Color=gray, Width=6:1;17:6)
.* Polyline (MinZoom=8, Color=gray, Width=6:1;17:10)
HighwayMotorwayLink Way highway=motorway_link Polyline (MinZoom=10, Color=gray, Width=6:1;17:4) EliminateSeams
Postal_code Area highway=* Template:IconAreaWay Polyline (MinZoom=5, Width=11:1;17:1)
.trunk highway=trunk Polyline (MinZoom=5, Color=gray, Width=8:1;10:2;17:3)
.primary highway=primary Polyline (MinZoom=5, Color=gray)
.secondary highway=secondary Polyline (MinZoom=5, Color=gray)
.pc97849 postal_code=97849 Polyline (Color=#00c0c0)
.pc97851 postal_code=97851 Polyline (Color=#00ffc0)
.pc97859 postal_code=97859 Polyline (Color=#4000c0)
.pc97859 postal_code=97854 Polyline (Color=#4080c0)
.pcany postal_code=* Polyline (Color=black)
.cycle highway=cycleway Polyline (Color=white)
.foot highway=footway Polyline (Color=white)
.* highway=* Polyline (Color=white)


Other Ways

Rule Name Targets Selector Template Options Comment
Rail Way railway=rail Polyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=10:1;15:4) EliminateSeams
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)


Places

Rule Name Targets Selector Template Options Comment
PlaceVillage Node place=village Text (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceIsland Node place=island Text (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceSuburb Node place=suburb Text (MinZoom=13, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20)
PlaceHamlet Node place=hamlet Text (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
PlaceLocality Node place=locality Text (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)