User:Alex McKee/Postcodes

From OpenStreetMap Wiki
Jump to: navigation, search

Information

Based on the UK postcode rules for Kosmos by User:Bahnpirat.

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))
.level10 admin_level=10 Polyline (MinZoom=13, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;5:3))
.* 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
postal_codeText Node amenity=postal_code Text (MinZoom=10, Color=green, TagToUse=postal_code, FontName=Arial, FontSize=10:6;15:10, TextLineOffset=-200%)
openGeoDBpostal_codesText Node amenity=is_in Text (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
HighwayMotorway Way highway=motorway Polyline (MinZoom=8, Color=gray, Width=6:1;17:6)
HighwayMotorwayLink Way highway=motorway_link Polyline (MinZoom=10, Color=gray, Width=6:1;17:4)
trunk highway=trunk Polyline (MinZoom=5, Color=gray, Width=8:2;10:2;17:3)
primary highway=primary Polyline (MinZoom=5, Color=gray, Width=8:2;10:2;17:3)
secondary highway=secondary Polyline (MinZoom=5, Color=gray, Width=8:2;10:2;17:3)

Post codes

Rule Name Targets Selector Template Options Comment
AddrPC Way Area addr:postcode=* Polygon (color=#404080)
AddrPCNode Node addr:postcode=* Symbol (Type=Circle, Color=#404080)
Postal_code Way postal_code=* Polyline (MinZoom=5, Width=12:1;15:2)
.GL postal_code=GL -

Other Ways

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