User:Vibrog/Kosmos-rules/night

From OpenStreetMap Wiki
Jump to: navigation, search

Introduction

This page contains a set of rendering rules for Kosmos.

These rules are based on User:Gustavf/Kosmos-rules, but colors have been tweaked to make the map look like night satellite imagery of the earth.

It's purpose is to review lit=yes tagging.


URL of the rules to use in Kosmos: http://wiki.openstreetmap.org/index.php?title=User:Vibrog/Kosmos_at_night

Options

Option Value Comment
MinKosmosVersion 2.1 Minimal version of Kosmos needed to use these rules
LandBackgroundColor #201F47
SeaColor #00011F

Land Areas

Forest, grass and sports

Rule Name Targets Selector Template Options Comment
Wood Area natural=wood Polygon (Color=#0B0A2C)
Forest Area landuse=forest Polygon (Color=#0B0A2C)
Scrub Area natural=scrub Polygon (Color=#0B0A2C)
Allotments Area landuse=allotments Polygon (Color=#201F47)
Park Area leisure=park Polygon (Color=#201F47)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Garden Area leisure=garden Polygon (Color=#201F47)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Common Area leisure=common Polygon (Color=#201F47)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Recreation Ground Area landuse=recreation_ground Polygon (Color=#201F47)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Village Green Area landuse=village_green Polygon (Color=#201F47)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Cemetery Area landuse=cemetery Polygon (Color=#201F47, BorderColor=#201F47, BackgroundColor=#00000000, HatchStyle=DashedVertical)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Pitch Area leisure=pitch Polygon (MinZoom=12, Color=#34343C)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Stadium Area leisure=stadium Polygon (MinZoom=12, Color=#34343C, BorderColor=black, BorderWidth=13:0;14:1;17:2)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
GolfCourse Area leisure=golf_course Polygon (Color=#201F47)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
HorseRacing Area sport=horse_racing Polygon (Color=#34343C)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Playground Area leisure=playground Polygon (MinZoom=12, Color=#201F47)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Sports Centre Area leisure=sports_centre Polygon (Color=#34343C)
SportsTrack Area leisure=track Polygon (MinZoom=12, Color=#34343C, BorderColor=black, BorderWidth=13:0;14:1;17:2)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Tennis Area sport=tennis Polygon (MinZoom=12, Color=#34343C, BorderColor=black, BorderWidth=13:0;14:1;17:2)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Swimming Area sport=swimming Polygon (Color=#00011F)

Other

Rule Name Targets Selector Template Options Comment
Coastline Way natural=coastline Polyline (MinZoom=1, Color=#00011F, Width=11:1;17:2)
Fell Area natural=fell Polygon (Color=#201F47)
Residential Area landuse=* Polygon (Color=#34343C)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Reservoir Area landuse=reservoir Polygon (Color=#00011F)
Basin Area landuse=basin Polygon (Color=#00011F)
School Area amenity=school Polygon (Color=#34343C)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=15:6;17:10, TextMode=AreaCenter)
Skiing Area sport=skiing Polygon (Color=#34343C)
Marina Area leisure=marina Polygon (Color=#34343C)
Waterpark Area leisure=water_park Polygon (Color=#00011F)
ParkingArea Area amenity=parking Polygon (Color=#34343C)
Snuplass Area highway=*
area=yes
Polygon (Color=#34343C)
Tourism Area tourism=* Polygon (Color=#34343C)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
RailwayArea Area landuse=railway Polygon (Color=#34343C)
PowerSubstation Area power=sub_station Polygon (Color=#34343C)

Water Features

Rule Name Targets Selector Template Options Comment
Water Area natural=water Polygon (Color=#00011F)
Marsh Area natural=marsh Polygon (Color=#00011F, BackgroundColor=#00000000, BorderColor=#00011F, BorderWidth=1:1;12:1;15:3, HatchStyle=DashedHorizontal)
River Way waterway=river Polyline (MinZoom=5, Color=#00011F, Width=5:1;10:2;17:14, Curved=true)
Drain Way waterway=drain Polyline (MinZoom=13, Color=#00011F, Width=13:1;17:6, Curved=true)
Stream Way waterway=stream Polyline (MinZoom=13, Color=#00011F, Width=13:1;17:6, Curved=true)
Canal Way waterway=canal Polyline (MinZoom=5, Color=#00011F, Width=5:1;10:1;17:10, Curved=true)
Riverbank Area waterway=riverbank Polygon (Color=#00011F)
Land Area natural=land Polygon (Color=#201F47)

Other Land Features

Rule Name Targets Selector Template Options Comment
Contours Way ele=* for elevation contours generated by Srtm2Osm
.Major Way ValueNum(e,"ele") % 100 = 0 Polyline (MinZoom=11, Color=#B000011F, Width=11:1;14:2, Curved=true) Major contours (100m ones)
.* Way Polyline (MinZoom=12, Color=#B000011F, Width=1, Curved=true) all other contours

Highways

Minor roads

Rule Name Targets Selector Template Options Comment
HighwayUnpaved Way highway=unpaved Polyline (MinZoom=11, Color=black, Width=11:1;14:3;17:8) EliminateSeams
HighwayUnpavedText Way highway=unpaved Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayUnsurfaced Way highway=unsurfaced Polyline (MinZoom=11, Color=black, Width=11:1;14:3;17:8) EliminateSeams deprecated
HighwayUnclassified Way highway=unclassified Polyline (MinZoom=11, Color=black, Width=11:1;14:3;17:8) EliminateSeams
HighwayUnclassifiedText Way highway=unclassified Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayResidential Way highway=residential Polyline (MinZoom=11, Color=black, Width=11:1;14:3;17:8) EliminateSeams
HighwayResidentialText Way highway=residential Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayService Way highway=service Polyline (MinZoom=14, Color=black, Width=13:1;17:4) EliminateSeams
HighwayServiceText Way highway=service Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:5;17:8)
HighwayMinor Way highway=minor Polyline (MinZoom=12, Color=black, Width=11:1;14:3;17:8) EliminateSeams
HighwayMinorText Way highway=minor Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:5;17:8)

Without motor

Rule Name Targets Selector Template Options Comment
HighwaySteps Way highway=steps Polyline (MinZoom=13, Color=#FFDE93, DashStyle=Dot, BorderColor=gray, Width=13:1;17:6) EliminateSeams
GS-Sti-Cycleway Way highway=cycleway Polyline (MinZoom=12, Color=#34343C, Width=11:1;13:1;17:3) EliminateSeams
GS-Sti-Footway Way bicycle=yes highway=footway Polyline (MinZoom=12, Color=#34343C, DashStyle=Dash, Width=11:1;13:1;17:3) EliminateSeams
HighwayPedestrian Way highway=pedestrian Polyline (MinZoom=13, Color=#34343C, DashStyle=dot, BorderColor=gray, Width=11:1;14:3;17:8) EliminateSeams
HighwayPedestrianArea Area highway=pedestrian area=yes Polygon (MinZoom=13, Color=#34343C)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9, TextMode=AreaCenter)
EliminateSeams
HighwayPedestrianText Way highway=pedestrian Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayLivingStreet Way highway=living_street Polyline (MinZoom=11, Color=#34343C, Width=11:1;13:3;17:14) EliminateSeams
HighwayLivingStreetText Way highway=living_street Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayBridleway Way highway=bridleway Polyline (MinZoom=16, Color=#18711C, DashStyle=Dash, Width=13:1;17:3) EliminateSeams

Major roads

Rule Name Targets Selector Template Options Comment
HighwayTertiary Way highway=tertiary
.Bridge bridge=yes Polyline (MinZoom=11, Color=#34343C, BorderColor=black, Width=8:1;13:2;17:8, BorderWidth=30%) EliminateSeams
.Tunnel tunnel=yes Polyline (MinZoom=11, Color=#00000000, BorderColor=gray, BorderDashStyle=Dot, Width=8:1;13:2;17:8) EliminateSeams
.* Polyline (MinZoom=11, Color=#34343C, BorderColor=black, Width=11:1;13:3;17:14) EliminateSeams
HighwayTertiaryText Way highway=tertiary Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwaySecondary Way highway=secondary
.Bridge bridge=yes Polyline (MinZoom=9, Color=#34343C, BorderColor=black, BorderWidth=30%, Width=11:1;13:3;17:8) EliminateSeams
.Tunnel tunnel=yes Polyline (MinZoom=9, Color=#00000000, BorderColor=gray, BorderDashStyle=Dot, Width=11:1;13:3;17:8) EliminateSeams
.* Polyline (MinZoom=9, Color=#34343C, BorderColor=gray, Width=11:1;13:3;17:14) EliminateSeams
HighwaySecondaryText Way highway=secondary Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayPrimary Way highway=primary
.Bridge bridge=yes Polyline (MinZoom=8, Color=#34343C, BorderColor=black, Width=6:1;9:2;12:4;17:8, BorderWidth=30%) EliminateSeams
.Tunnel tunnel=yes Polyline (MinZoom=8, Color=#00000000, BorderColor=gray, BorderDashStyle=Dot, BorderWidth=20%, Curved=True, Width=6:1;9:2;12:4;17:8) EliminateSeams
.* Polyline (MinZoom=8, Color=#34343C, BorderColor=black, BorderWidth=20%, Width=6:1;9:2;12:4;17:8) EliminateSeams
HighwayPrimaryText Way highway=primary Text (MinZoom=14, Color=black, TagToUse=name;ref, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayPrimaryLink Way highway=primary_link
.Bridge bridge=yes Polyline (MinZoom=8, Color=#34343C, BorderColor=black, Width=6:1;9:2;12:4;17:8, BorderWidth=30%) EliminateSeams
.Tunnel tunnel=yes Polyline (MinZoom=8, Color=#00000000, BorderColor=gray, BorderDashStyle=Dot, BorderWidth=20%, Curved=True, Width=6:1;9:2;12:4;17:8) EliminateSeams
.* Polyline (MinZoom=8, Color=#34343C, BorderColor=black, BorderWidth=20%, Width=6:1;9:2;17:12) EliminateSeams
HighwayTrunk Way highway=trunk
.Tunnel tunnel=yes Polyline (MinZoom=6, Color=#00000000, BorderColor=gray, BorderDashStyle=Dot, Curved=True, Width=6:1;9:2;12:4;17:8) EliminateSeams
.* Polyline (MinZoom=6, Color=#34343C, BorderColor=black, Width=6:1;9:2;12:4;17:8) EliminateSeams
HighwayTrunkText Way highway=trunk Text (MinZoom=14, Color=black, TagToUse=name;ref, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayTrunkLink Way highway=trunk_link Polyline (MinZoom=6, Color=#34343C, BorderColor=gray, Width=6:1;9:2;12:4;17:8) EliminateSeams
.Tunnel tunnel=yes Polyline (MinZoom=6, Color=#00000000, BorderColor=gray, BorderDashStyle=Dot, Curved=True, Width=6:1;9:2;12:4;17:8) EliminateSeams
HighwayMotorway Way highway=motorway EliminateSeams
.Bridge bridge=yes Polyline (MinZoom=6, Color=#34343C, BorderColor=black, Width=6:1;9:2;12:4;17:8, BorderWidth=30%) EliminateSeams
.Tunnel tunnel=yes Polyline (MinZoom=6, Color=#00000000, BorderColor=gray, BorderDashStyle=Dot, Curved=True, Width=6:1;9:2;12:4;17:8) EliminateSeams
.* Polyline (MinZoom=6, Color=#34343C, BorderColor=black, BorderWidth=20%, Width=6:1;9:2;12:4;17:8) EliminateSeams
HighwayMotorwayText Way highway=motorway Text (MinZoom=14, Color=black, TagToUse=name;ref, FontName=Segoe UI, FontStyle=regular, FontSize=15:6;17:9)
HighwayMotorwayLink Way highway=motorway_link
.Tunnel tunnel=yes Polyline (MinZoom=6, Color=#00000000, BorderColor=gray, BorderDashStyle=Dot, Curved=True, Width=6:1;9:2;12:4;17:8) EliminateSeams
.* Polyline (MinZoom=6, Color=#34343C, BorderColor=black, BorderWidth=20%, Width=6:1;9:2;12:4;17:8) EliminateSeams

Lit roads

Rule Name Targets Selector Template Options Comment
Streetlights Way lit=yes Polyline(MinZoom=11, Color=#F7FADD, Width=10:1;17:4) EliminateSeams
Streetlights Area area=yes
lit=yes
Polygon(Color=#F7FADD)


Railways

Rule Name Targets Selector Template Options Comment
Rail Way railway=rail
.Tunnel tunnel=yes Polyline (MinZoom=16, Color=#5B5B5B, DashStyle=Dash, Width=1) EliminateSeams
.* Polyline (MinZoom=6, Color=#444444, Width=6:1;9:2;17:3) EliminateSeams
Subway Way railway=subway
.Tunnel tunnel=yes Polyline (MinZoom=16, Color=#5B5B5B, DashStyle=Dash, Width=1) EliminateSeams
.* Polyline (MinZoom=11, Color=#444444, Width=6:1;11:1;17:3) EliminateSeams
Tram Way railway=tram Polyline (MinZoom=13, Color=#444444, Width=6:1;13:1;17:2.5) EliminateSeams
LightRail Way railway=light_rail Polyline (MinZoom=11, Color=#444444, Width=6:1;11:1;17:3) EliminateSeams
RailDisused Way railway=tram Polyline (MinZoom=13, Color=#444444, DashStyle=Dot, Width=6:1;13:1;17:2.5) EliminateSeams
RailwayStation Node railway=station Symbol (Type=Square, MinZoom=13, Color=#5B5B5B, Size=13:6;17:20)
Text (MinZoom=12, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=14:6;17:14, TextLineOffset=-170%)
TramStop Node railway=tram_stop Symbol (Type=Square, Color=#5B5B5B, MinZoom=14, Size=10:4;14:8)
Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=14:6;17:14, TextLineOffset=-170%)
RailHalt Node railway=halt Symbol (Type=Square, Color=#5B5B5B, MinZoom=13, Size=13:2.5;14:7)
Text (MinZoom=14, Color=black, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=14:6;17:14, TextLineOffset=-170%)

Other Ways

Rule Name Targets Selector Template Options Comment
CableCar Way aerialway=cable_car Symbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=20%, BorderColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:3)
DragLift Way aerialway=drag_lift Symbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=10%, BorderColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:2)
ChairLift Way aerialway=chair_lift Symbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=10%, BorderColor=black, BackgroundColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:2)
Ferry Way route=ferry Polyline (MinZoom=8, Color=darkgray, DashStyle=Dot, Width=8:0.1;17:4)
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))
.* Polyline (MinZoom=12, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
Runway Way aeroway=runway Polyline (MinZoom=11, Color=#666, Width=11:1;17:20)
Taxiway Way aeroway=taxiway Polyline (MinZoom=12, Color=#666, Width=12:1;17:10)
powerline Way power=line Polyline (MinZoom=11, Color=gray, Width=11:1;13:1;17:1) EliminateSeams
power tower Node power=tower Symbol (Type=Diamond, MinZoom=13, Color=white, BorderColor=black, BorderWidth=10%, Size=13:4;17:15)
Festningsverk Way historic=fortress Polyline (MinZoom=13, Color=#5B5B5B, Width=6:1;13:1;17:2.5)

Places

Rule Name Targets Selector Template Options Comment
PlaceCountry Node place=country Text (MinZoom=3, MaxZoom=7, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=3:7;7:20)
PlaceCity Node place=city Text (MinZoom=6, MaxZoom=14, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=7:10;17:30)
PlaceTown Node place=town Text (MinZoom=10, MaxZoom=15, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=10:10;17:25)
PlaceVillage Node place=village Text (MinZoom=12, MaxZoom=16, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=12:10;17:20)
PlaceIsland Node place=island Text (MinZoom=12, MaxZoom=16, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=12:10;17:20)
PlaceSuburb Node place=suburb Text (MinZoom=13, MaxZoom=16, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=13:10;17:20)
PlaceHamlet Node place=hamlet Text (MinZoom=14, MaxZoom=17, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=14:8;17:14)
PlaceLocality Node place=locality Text (MinZoom=14, MaxZoom=17, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=14:8;17:14)
PlaceFarm Node place=farm Text (MinZoom=15, MaxZoom=19, Color=#5B5B5B, OutlineColor=White, OutlineWidth=10%, TagToUse=name, FontName=Segoe UI, FontStyle=bold, FontSize=15:8;17:13)

Buildings

Rule Name Targets Selector Template Options Comment
BuildingAny Area building=* Polygon (MinZoom=13, Color=black)
Text (MinZoom=16, Color=white, TagToUse=name, FontName=Segoe UI, FontStyle=regular, FontSize=16:6;17:10, TextMode=AreaCenter)

Navaids

Rule Name Targets Selector Template Options Comment
NavaidBuoy Node man_made=buoy Symbol (Type=Diamond, MinZoom=11, Color=blue, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)
NavaidLighthouse Node man_made=lighthouse Symbol (Type=Triangle, MinZoom=10, Color=blue, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)