User:Alex McKee/Postcodes

From OpenStreetMap Wiki
Jump to navigation Jump to 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)