User:Vibrog/Kosmos-rules/night

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