User:Alex McKee/Street

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