< Kosmos postal code rendering rules

Kosmos postal code rendering rules/ch

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
Coastlinenatural=coastlinePolyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)
Waternatural=waterPolygon (Color=lightblue)
Riverwaterway=riverPolyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true)
Drainwaterway=drainPolyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Streamwaterway=streamPolyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Canalwaterway=canalPolyline (MinZoom=5, Color=lightblue, Width=5:1;10:1;17:10, Curved=true)
Riverbankwaterway=riverbankPolygon (Color=lightblue)
Landnatural=landPolygon (Color=white)
Borderboundary=administrative
.level2admin_level=2Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level4admin_level=4Polyline (MinZoom=10, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level8admin_level=8Polyline (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
PostOfficeamenity=post_officeIcon (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%)

Highways

Rule Name Targets Selector Template Options Comment
HighwayMotorwayhighway=motorwayEliminateSeams
.Bridgebridge=yesPolyline (MinZoom=8, Color=gray, Width=6:1;17:6)
.*Polyline (MinZoom=8, Color=gray, Width=6:1;17:10)
HighwayMotorwayLinkhighway=motorway_linkPolyline (MinZoom=10, Color=gray, Width=6:1;17:4)EliminateSeams
Postal_codehighway=*Polyline (MinZoom=5, Width=11:1;17:1)
.trunkhighway=trunkPolyline (MinZoom=5, Color=gray, Width=8:1;10:2;17:3)
.primaryhighway=primaryPolyline (MinZoom=5, Color=gray)
.secondaryhighway=secondaryPolyline (MinZoom=5, Color=gray)
.pc97849postal_code=97849Polyline (Color=#00c0c0)
.pc97851postal_code=97851Polyline (Color=#00ffc0)
.pc97859postal_code=97859Polyline (Color=#4000c0)
.pc97859postal_code=97854Polyline (Color=#4080c0)
.pcanypostal_code=*Polyline (Color=black)
.cyclehighway=cyclewayPolyline (Color=white)
.foothighway=footwayPolyline (Color=white)
.*highway=*Polyline (Color=white)

Other Ways

Rule Name Targets Selector Template Options Comment
Railrailway=railPolyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=10:1;15:4)EliminateSeams
Runwayaeroway=runwayPolyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30)
Taxiwayaeroway=taxiwayPolyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10)


Places

Rule Name Targets Selector Template Options Comment
PlaceVillageplace=villageText (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceIslandplace=islandText (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceSuburbplace=suburbText (MinZoom=13, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20)
PlaceHamletplace=hamletText (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
PlaceLocalityplace=localityText (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.