< Kosmos postal code rendering rules

Kosmos postal code rendering rules/uk

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=*. Contact user:Bahnpirat for question on these rules.

Update: 2008-07-03
  • Only existing UK postal codes for regions will be rendered. (24 different colours)
  • Ways and areas will be rendered.
  • Displaying may also work for other countries with the same values.
  • openGeoDB:postal_codes=* will not be rendered for technical reasons of Kosmos. (':' in tagname is not supported)
  • amenity=post_office is shown.
  • Highway = motorway, motorway_link, trunk, primary, secondary will be rendered in gray. Runway and taxiway will be rendered.
  • border=* with admin_level=* (2,4,8) and place=* are rendered.

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%)
postal_codeTextamenity=postal_codeText (MinZoom=10, Color=green, TagToUse=postal_code, FontName=Arial, FontSize=10:6;15:10, TextLineOffset=-200%)
openGeoDBpostal_codesTextamenity=is_inText (MinZoom=10, Color=green, TagToUse=openGeoDB:postal_codes, FontName=Arial, FontSize=10:6;15:10, TextLineOffset=-200%)

Highways

Rule Name Targets Selector Template Options Comment
HighwayMotorwayhighway=motorwayPolyline (MinZoom=8, Color=gray, Width=6:1;17:6)
HighwayMotorwayLinkhighway=motorway_linkPolyline (MinZoom=10, Color=gray, Width=6:1;17:4)
trunkhighway=trunkPolyline (MinZoom=5, Color=gray, Width=8:2;10:2;17:3)
primaryhighway=primaryPolyline (MinZoom=5, Color=gray, Width=8:2;10:2;17:3)
secondaryhighway=secondaryPolyline (MinZoom=5, Color=gray, Width=8:2;10:2;17:3)
Postal_codepostal_code=*Polyline (MinZoom=5, Width=12:1;15:2)
.B1postal_code=B1- .B2postal_code=B2- .B3postal_code=B3- .B4postal_code=B4- .B5postal_code=B5- .B6postal_code=B6- .B7postal_code=B7- .B8postal_code=B8- .B9postal_code=B9- .B10postal_code=B10- .B11postal_code=B11- .B12postal_code=B12- .B13postal_code=B13- .B14postal_code=B14- .B15postal_code=B15- .B16postal_code=B16- .B17postal_code=B17- .B18postal_code=B18- .B19postal_code=B19- .B20postal_code=B20- .B21postal_code=B21- .B22postal_code=B22- .B23postal_code=B23- .B24postal_code=B24- .B25postal_code=B25- .B26postal_code=B26- .B27postal_code=B27- .B28postal_code=B28- .B29postal_code=B29- .B30postal_code=B30- .B31postal_code=B31- .B32postal_code=B32- .B33postal_code=B33- .B34postal_code=B34- .B35postal_code=B35- .B36postal_code=B36- .B37postal_code=B37- .B38postal_code=B38- .B39postal_code=B39- .B40postal_code=B40- .B41postal_code=B41- .B42postal_code=B42- .B43postal_code=B43- .B44postal_code=B44- .B45postal_code=B45- .B46postal_code=B46- .B47postal_code=B47- .B48postal_code=B48- .B49postal_code=B49- .B50postal_code=B50- .B51postal_code=B51- .B52postal_code=B52- .B53postal_code=B53- .B54postal_code=B54- .B55postal_code=B55- .B56postal_code=B56- .B57postal_code=B57- .B58postal_code=B58- .B59postal_code=B59- .B60postal_code=B60- .B61postal_code=B61- .B62postal_code=B62- .B63postal_code=B63- .B64postal_code=B64- .B65postal_code=B65- .B66postal_code=B66- .B67postal_code=B67- .B68postal_code=B68- .B69postal_code=B69- .B70postal_code=B70- .B71postal_code=B71- .B72postal_code=B72- .B73postal_code=B73- .B74postal_code=B74- .B75postal_code=B75- .B76postal_code=B76- .BS1postal_code=BS1- .BS2postal_code=BS2- .BS3postal_code=BS3- .BS4postal_code=BS4- .BS5postal_code=BS5- .BS6postal_code=BS6- .BS7postal_code=BS7- .BS8postal_code=BS8- .BS9postal_code=BS9- .BS10postal_code=BS10- .BS11postal_code=BS11- .BS12postal_code=BS12- .BS13postal_code=BS13- .BS14postal_code=BS14- .BS15postal_code=BS15- .BS16postal_code=BS16- .E1postal_code=E1- .E2postal_code=E2- .E3postal_code=E3- .E4postal_code=E4- .E5postal_code=E5- .E6postal_code=E6- .E7postal_code=E7- .E8postal_code=E8- .E9postal_code=E9- .E10postal_code=E10- .E11postal_code=E11- .E12postal_code=E12- .E13postal_code=E13- .E14postal_code=E14- .E15postal_code=E15- .EC1postal_code=EC1- .EC2postal_code=EC2- .EC3postal_code=EC3- .L1postal_code=L1- .L2postal_code=L2- .L3postal_code=L3- .L4postal_code=L4- .L5postal_code=L5- .L6postal_code=L6- .L7postal_code=L7- .L8postal_code=L8- .L9postal_code=L9- .L10postal_code=L10- .L11postal_code=L11- .L12postal_code=L12- .L13postal_code=L13- .L14postal_code=L14- .L15postal_code=L15- .L16postal_code=L16- .L17postal_code=L17- .L18postal_code=L18- .L19postal_code=L19- .L20postal_code=L20- .L21postal_code=L21- .L22postal_code=L22- .L23postal_code=L23- .L24postal_code=L24- .L25postal_code=L25- .L26postal_code=L26- .L27postal_code=L27- .L28postal_code=L28- .L29postal_code=L29- .L30postal_code=L30- .LS1postal_code=LS1- .LS2postal_code=LS2- .LS3postal_code=LS3- .LS4postal_code=LS4- .LS5postal_code=LS5- .LS6postal_code=LS6- .LS7postal_code=LS7- .LS8postal_code=LS8- .LS9postal_code=LS9- .LS10postal_code=LS10- .LS11postal_code=LS11- .LS12postal_code=LS12- .LS13postal_code=LS13- .LS14postal_code=LS14- .LS15postal_code=LS15- .LS16postal_code=LS16- .LS17postal_code=LS17- .LS18postal_code=LS18- .LS19postal_code=LS19- .LS20postal_code=LS20- .LS21postal_code=LS21- .LS22postal_code=LS22- .LS23postal_code=LS23- .LS24postal_code=LS24- .LS25postal_code=LS25- .LS26postal_code=LS26- .LS27postal_code=LS27- .LS28postal_code=LS28- .LS29postal_code=LS29- .LS30postal_code=LS30- .LS31postal_code=LS31- .SE1postal_code=SE1- .SE2postal_code=SE2- .SE3postal_code=SE3- .SE4postal_code=SE4- .SE5postal_code=SE5- .SE6postal_code=SE6- .SE7postal_code=SE7- .SE8postal_code=SE8- .SE9postal_code=SE9- .SE10postal_code=SE10- .SE11postal_code=SE11- .SE12postal_code=SE12- .SE13postal_code=SE13- .SE14postal_code=SE14- .SE15postal_code=SE15- .SE16postal_code=SE16- .SE17postal_code=SE17- .SE18postal_code=SE18- .SE19postal_code=SE19- .SW1postal_code=SW1- .SW2postal_code=SW2- .SW3postal_code=SW3- .SW4postal_code=SW4- .SW5postal_code=SW5- .SW6postal_code=SW6- .SW7postal_code=SW7- .SW8postal_code=SW8- .SW9postal_code=SW9- .SW10postal_code=SW10- .SW11postal_code=SW11- .SW12postal_code=SW12- .SW13postal_code=SW13- .SW14postal_code=SW14- .SW15postal_code=SW15- .SW16postal_code=SW16- .SW17postal_code=SW17- .SW18postal_code=SW18- .SW19postal_code=SW19- .SW20postal_code=SW20- .W1postal_code=W1- .W2postal_code=W2- .W3postal_code=W3- .W4postal_code=W4- .W5postal_code=W5- .W6postal_code=W6- .W7postal_code=W7- .W8postal_code=W8- .W9postal_code=W9- .W10postal_code=W10- .W11postal_code=W11- .WC1postal_code=WC1- .WC2postal_code=WC2- .WC3postal_code=WC3- .WC4postal_code=WC4- .WC5postal_code=WC5- .WC6postal_code=WC6- .WC7postal_code=WC7- .WC8postal_code=WC8- .WC9postal_code=WC9- .WC10postal_code=WC10- .WC11postal_code=WC11- .WC12postal_code=WC12- .WC13postal_code=WC13-
.pcanypostal_code=*Polyline (Color=black)
Postal_codepostal_code=*Polygon (MinZoom=5, Width=12:1;15:2)
.UKB1postal_code=B1- .UKB2postal_code=B2- .UKB3postal_code=B3- .UKB4postal_code=B4- .UKB5postal_code=B5- .UKB6postal_code=B6- .UKB7postal_code=B7- .UKB8postal_code=B8- .UKB9postal_code=B9- .UKB10postal_code=B10- .UKB11postal_code=B11- .UKB12postal_code=B12- .UKB13postal_code=B13- .UKB14postal_code=B14- .UKB15postal_code=B15- .UKB16postal_code=B16- .UKB17postal_code=B17- .UKB18postal_code=B18- .UKB19postal_code=B19- .UKB20postal_code=B20- .UKB21postal_code=B21- .UKB22postal_code=B22- .UKB23postal_code=B23- .UKB24postal_code=B24- .UKB25postal_code=B25- .UKB26postal_code=B26- .UKB27postal_code=B27- .UKB28postal_code=B28- .UKB29postal_code=B29- .UKB30postal_code=B30- .UKB31postal_code=B31- .UKB32postal_code=B32- .UKB33postal_code=B33- .UKB34postal_code=B34- .UKB35postal_code=B35- .UKB36postal_code=B36- .UKB37postal_code=B37- .UKB38postal_code=B38- .UKB39postal_code=B39- .UKB40postal_code=B40- .UKB41postal_code=B41- .UKB42postal_code=B42- .UKB43postal_code=B43- .UKB44postal_code=B44- .UKB45postal_code=B45- .UKB46postal_code=B46- .UKB47postal_code=B47- .UKB48postal_code=B48- .UKB49postal_code=B49- .UKB50postal_code=B50- .UKB51postal_code=B51- .UKB52postal_code=B52- .UKB53postal_code=B53- .UKB54postal_code=B54- .UKB55postal_code=B55- .UKB56postal_code=B56- .UKB57postal_code=B57- .UKB58postal_code=B58- .UKB59postal_code=B59- .UKB60postal_code=B60- .UKB61postal_code=B61- .UKB62postal_code=B62- .UKB63postal_code=B63- .UKB64postal_code=B64- .UKB65postal_code=B65- .UKB66postal_code=B66- .UKB67postal_code=B67- .UKB68postal_code=B68- .UKB69postal_code=B69- .UKB70postal_code=B70- .UKB71postal_code=B71- .UKB72postal_code=B72- .UKB73postal_code=B73- .UKB74postal_code=B74- .UKB75postal_code=B75- .UKB76postal_code=B76- .UKBS1postal_code=BS1- .UKBS2postal_code=BS2- .UKBS3postal_code=BS3- .UKBS4postal_code=BS4- .UKBS5postal_code=BS5- .UKBS6postal_code=BS6- .UKBS7postal_code=BS7- .UKBS8postal_code=BS8- .UKBS9postal_code=BS9- .UKBS10postal_code=BS10- .UKBS11postal_code=BS11- .UKBS12postal_code=BS12- .UKBS13postal_code=BS13- .UKBS14postal_code=BS14- .UKBS15postal_code=BS15- .UKBS16postal_code=BS16- .UKE1postal_code=E1- .UKE2postal_code=E2- .UKE3postal_code=E3- .UKE4postal_code=E4- .UKE5postal_code=E5- .UKE6postal_code=E6- .UKE7postal_code=E7- .UKE8postal_code=E8- .UKE9postal_code=E9- .UKE10postal_code=E10- .UKE11postal_code=E11- .UKE12postal_code=E12- .UKE13postal_code=E13- .UKE14postal_code=E14- .UKE15postal_code=E15- .UKEC1postal_code=EC1- .UKEC2postal_code=EC2- .UKEC3postal_code=EC3- .UKL1postal_code=L1- .UKL2postal_code=L2- .UKL3postal_code=L3- .UKL4postal_code=L4- .UKL5postal_code=L5- .UKL6postal_code=L6- .UKL7postal_code=L7- .UKL8postal_code=L8- .UKL9postal_code=L9- .UKL10postal_code=L10- .UKL11postal_code=L11- .UKL12postal_code=L12- .UKL13postal_code=L13- .UKL14postal_code=L14- .UKL15postal_code=L15- .UKL16postal_code=L16- .UKL17postal_code=L17- .UKL18postal_code=L18- .UKL19postal_code=L19- .UKL20postal_code=L20- .UKL21postal_code=L21- .UKL22postal_code=L22- .UKL23postal_code=L23- .UKL24postal_code=L24- .UKL25postal_code=L25- .UKL26postal_code=L26- .UKL27postal_code=L27- .UKL28postal_code=L28- .UKL29postal_code=L29- .UKL30postal_code=L30- .UKLS1postal_code=LS1- .UKLS2postal_code=LS2- .UKLS3postal_code=LS3- .UKLS4postal_code=LS4- .UKLS5postal_code=LS5- .UKLS6postal_code=LS6- .UKLS7postal_code=LS7- .UKLS8postal_code=LS8- .UKLS9postal_code=LS9- .UKLS10postal_code=LS10- .UKLS11postal_code=LS11- .UKLS12postal_code=LS12- .UKLS13postal_code=LS13- .UKLS14postal_code=LS14- .UKLS15postal_code=LS15- .UKLS16postal_code=LS16- .UKLS17postal_code=LS17- .UKLS18postal_code=LS18- .UKLS19postal_code=LS19- .UKLS20postal_code=LS20- .UKLS21postal_code=LS21- .UKLS22postal_code=LS22- .UKLS23postal_code=LS23- .UKLS24postal_code=LS24- .UKLS25postal_code=LS25- .UKLS26postal_code=LS26- .UKLS27postal_code=LS27- .UKLS28postal_code=LS28- .UKLS29postal_code=LS29- .UKLS30postal_code=LS30- .UKLS31postal_code=LS31- .UKSE1postal_code=SE1- .UKSE2postal_code=SE2- .UKSE3postal_code=SE3- .UKSE4postal_code=SE4- .UKSE5postal_code=SE5- .UKSE6postal_code=SE6- .UKSE7postal_code=SE7- .UKSE8postal_code=SE8- .UKSE9postal_code=SE9- .UKSE10postal_code=SE10- .UKSE11postal_code=SE11- .UKSE12postal_code=SE12- .UKSE13postal_code=SE13- .UKSE14postal_code=SE14- .UKSE15postal_code=SE15- .UKSE16postal_code=SE16- .UKSE17postal_code=SE17- .UKSE18postal_code=SE18- .UKSE19postal_code=SE19- .UKSW1postal_code=SW1- .UKSW2postal_code=SW2- .UKSW3postal_code=SW3- .UKSW4postal_code=SW4- .UKSW5postal_code=SW5- .UKSW6postal_code=SW6- .UKSW7postal_code=SW7- .UKSW8postal_code=SW8- .UKSW9postal_code=SW9- .UKSW10postal_code=SW10- .UKSW11postal_code=SW11- .UKSW12postal_code=SW12- .UKSW13postal_code=SW13- .UKSW14postal_code=SW14- .UKSW15postal_code=SW15- .UKSW16postal_code=SW16- .UKSW17postal_code=SW17- .UKSW18postal_code=SW18- .UKSW19postal_code=SW19- .UKSW20postal_code=SW20- .UKW1postal_code=W1- .UKW2postal_code=W2- .UKW3postal_code=W3- .UKW4postal_code=W4- .UKW5postal_code=W5- .UKW6postal_code=W6- .UKW7postal_code=W7- .UKW8postal_code=W8- .UKW9postal_code=W9- .UKW10postal_code=W10- .UKW11postal_code=W11- .UKWC1postal_code=WC1- .UKWC2postal_code=WC2- .UKWC3postal_code=WC3- .UKWC4postal_code=WC4- .UKWC5postal_code=WC5- .UKWC6postal_code=WC6- .UKWC7postal_code=WC7- .UKWC8postal_code=WC8- .UKWC9postal_code=WC9- .UKWC10postal_code=WC10- .UKWC11postal_code=WC11- .UKWC12postal_code=WC12- .UKWC13postal_code=WC13-

Other Ways

Rule Name Targets Selector Template Options Comment
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.