User:FK270673/Power

From OpenStreetMap Wiki
Jump to: navigation, search

Introduction

This page contains my rendering rules for Kosmos.


See Kosmos Rendering Help for help on how to write rendering rules. Before committing changes to the page, please make sure the rules are actually working. Try them with the latest version of Kosmos (1.10 or above), since they are not compatible with previous versions.

Borders

Rule Name Targets Selector Template Options Comment
Border Way boundary=administrative
.level2 admin_level=2 Polyline (MinZoom=2, Color=pink, Width=1:1;9:1.5;17:6)
.level4 admin_level=4 Polyline (MinZoom=4, Color=pink, DashStyle=DashDot, Width=1:1;8: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)
Coastline Way natural=coastline Polyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)

Power

Rule Name Targets Selector Template Options Comment
minor_line Way power=minor_line Polyline (MinZoom=8, Color=gray, Width=11:1;13:1;17:1) EliminateSeams
powerline Way power=line Polyline (MinZoom=6, Color=gray, Width=11:1;13:1;17:1) EliminateSeams
power generator Node power=generator Symbol (Type=Diamond, MinZoom=5, Color=cyan, BorderColor=cyan, BorderWidth=20%, Size=13:4;17:15)
power station Node power=station Symbol (Type=Diamond, MinZoom=3, Color=yellow, BorderColor=black, BorderWidth=20%, Size=13:4;17:15)
power StationArea Area power=station Symbol (Type=Diamond, MinZoom=3, Color=yellow, BorderColor=black, BorderWidth=20%, Size=13:4;17:15)
power substation Node power=sub_station Symbol (Type=Square, MinZoom=8, Color=yellow, BorderColor=black, BorderWidth=20%, Size=13:4;17:15)
power SubstationArea Area power=sub_station Symbol (Type=Diamond, MinZoom=3, Color=yellow, BorderColor=black, BorderWidth=20%, Size=13:4;17:15)
power pole Node power=pole Symbol (Type=Diamond, MinZoom=3, Color=white, BorderColor=red, BorderWidth=10%, Size=13:1;17:1)
power tower Node power=tower Symbol (Type=Diamond, MinZoom=3, Color=white, BorderColor=black, BorderWidth=10%, Size=13:1;17:1)

Places

Rule Name Targets Selector Template Options Comment
PlaceCountry Node place=country Text (MinZoom=3, MaxZoom=7, Color=white, TagToUse=name, FontName=Trebuchet MS, FontSize=3:7;7:20)
PlaceCity Node place=city Text (MinZoom=6, MaxZoom=14, Color=black, TagToUse=name, FontName=Arial, FontSize=7:6;15:16)

Other Ways

Rule Name Targets Selector Template Options Comment
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)