User:Alex McKee/Street

From OpenStreetMap Wiki
Jump to: navigation, search

Options

Option Value Comment
MinKosmosVersion 2.1 Minimal version of Kosmos needed to use these rules
LandBackgroundColor #FFFFFF
SeaColor #B5D6F1

Places

Rule Name Targets Selector Template Options Comment
City Node place=city Text (Color=#444, TagToUse=name, MinZoom=6, MaxZoom=12, FontSize=6:12;12:10)
Town Node place=town Text (Color=#444, TagToUse=name, MinZoom=10, MaxZoom=12, FontSize=8:10;12:8)
Suburb Node place=suburb Text (Color=#444, TagToUse=name, MinZoom=12, FontSize=12:6;17:14)
Village Node place=village Text (Color=#444, TagToUse=name, MinZoom=12, FontSize=12:6;17:14)
Hamlet Node place=hamlet Text (Color=#444, TagToUse=name, MinZoom=14, FontSize=14:6;17:12)

Ordinary roads

As this is a street map, we need to more clearly define all minor roads using width, colour and casing.

Rule Name Targets Selector Template Options Comment
Residential Way highway=residential Polyline (Color=#ddd, Width=11:0.5;14:2;17:3) Text (Color=#444, TagToUse=name, MinZoom=16, FontSize=16:8, OutlineColor=black, OutlineWidth=20%)
Pedestrian Way highway=pedestrian Polyline (Color=#ddd, Width=11:0.2;14:0.5;17:1) Text (Color=#444, TagToUse=name, MinZoom=16, FontSize=16:8)
Service Way highway=service Polyline (Color=#ccc, Width=11:0.5;14:2;17:2) Text (Color=#444, TagToUse=name, MinZoom=16, FontSize=16:8)
Unclassified Way highway=unclassified Polyline (Color=#ccc, Width=11:0.5;14:2;17:3) Text (Color=#444, TagToUse=name, MinZoom=15, FontSize=16:8) ChildrenFirst
.Bridge Way bridge=yes Color=#ccc, Width=11:0.5;14:2;17:3) Text (Color=#444, TagToUse=name, MinZoom=15, FontSize=16:8)
.* Way Color=#ccc, Width=11:0.5;14:2;17:3) Text (Color=#444, TagToUse=name, MinZoom=15, FontSize=16:8

Highways

Since this is a street map, all various highways need to be clearly rendered.

Rule Name Targets Selector Template Options Comment
TertiaryZoomedOut Way highway=tertiary Polyline (Color=#ccc, Width=11:0.5;12:2) EliminateSeams
TertiaryZoomedIn Way highway=tertiary Polyline (Color=#ccc, Width=14:2;17:4, MinZoom=13) Text (Color=#444, TagToUse=name, MinZoom=15, FontSize=16:8) ChildrenFirst
.Bridge Way bridge=yes Polyline (Color=#ccc, Width=14:2;17:4, MinZoom=13, BorderColour=#444444, BorderWidth=10) Text (Color=#444, TagToUse=name, MinZoom=15, FontSize=16:8)
.* Way Polyline (Color=#ccc, Width=14:2;17:4, MinZoom=13) Text (Color=#444, TagToUse=name, MinZoom=15, FontSize=16:8)
Secondary Way highway=secondary Polyline (Color=#e79e6d, Width=11:1;14:3;17:8) Text (Color=#fff, TagToUse=ref, MinZoom=15, FontSize=16:8, TextMode=WayCenter, BackgroundColor=#e79e6d, BorderColor=#fff, BorderWidth=1) EliminateSeams
Primary Way highway=primary Polyline (Color=#ae4545, Width=11:1;14:3;17:10) Text (Color=#fff, TagToUse=ref, MinZoom=15, FontSize=16:8, TextMode=WayCenter, BackgroundColor=#ae4545, BorderColor=#fff, BorderWidth=1) EliminateSeams
PrimaryLink Way highway=primary_link Polyline (Color=#ae4545, Width=11:1;14:3;17:10) EliminateSeams

National road network

These will be rendered when zoomed out further.

Rule Name Targets Selector Template Options Comment
Trunk Way highway=trunk Polyline (Color=#7bae7b, Width=11:1;14:3;17:10) Text (Color=#fff, TagToUse=ref, MinZoom=15, FontSize=16:8, TextMode=WayCenter, BackgroundColor=#7bae7b, BorderColor=#fff, BorderWidth=1) EliminateSeams
TrunkLink Way highway=trunk_link Polyline (Color=#7bae7b, Width=11:1;14:3;17:10) EliminateSeams
Motorway Way highway=motorway Polyline (Color=#809BC0, Width=11:1;14:3;17:10) Text (Color=#fff, TagToUse=ref, MinZoom=12, FontSize=16:8, TextMode=WayCenter, BackgroundColor=#809BC0, BorderColor=#fff, BorderWidth=1) EliminateSeams

Emergency facillities

Hospitals with accident & emergency departments should be picked out in a different, more visible, colour than their non-emergency counterparts.

Rule Name Targets Selector Template Options Comment
AandE Area emergency=yes Polygon (Color=#fda9a9) Text (Color=#fff, TagToUse=name, MinZoom=14, FontSize=14:6;17:12, TextMode=AreaCenter)