User:Gustavf/Kosmos-3

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

This page contains a set of Kosmos rendering rules for a map showing one of the proposals for tagging maritime borders. The main focus here, is on maritime borders, and a few other features to get an aoutline of the surroundings.


Options

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

Land Areas

Rule Name Targets Selector Template Options Comment
Coastline way natural=coastline Polyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)

Water Features

Rule Name Targets Selector Template Options Comment
Water area natural=water Polygon (Color=lightblue)
River way waterway=river Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true)
Stream way waterway=stream Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Canal way waterway=canal Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:1;17:10, Curved=true)
Riverbank area waterway=riverbank Polygon (Color=lightblue)
Land area natural=land Polygon (Color=white)


Highways

Rule Name Targets Selector Template Options Comment
HighwayUnpaved way highway=unpaved Polyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=2) EliminateSeams
HighwayUnclassified way highway=unclassified Polyline (MinZoom=11, Color=gray, Width=2) EliminateSeams
HighwayPedestrian way highway=pedestrian Polyline (MinZoom=13, Color=gray, Width=2) EliminateSeams
HighwayResidential way highway=residential Polyline (MinZoom=11, Color=gray, Width=2) EliminateSeams
HighwayService way highway=service Polyline (MinZoom=12, Color=gray, Width=2) EliminateSeams
HighwayMinor way highway=minor Polyline (MinZoom=12, Color=gray, Width=2) EliminateSeams
HighwayTrack way highway=track Polyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=2) EliminateSeams
HighwayTertiary way highway=tertiary Polyline (MinZoom=10, Color=#F7F496, BorderColor=gray, Width=2) EliminateSeams
HighwaySecondary way highway=secondary Polyline (MinZoom=6, Color=#F7F496, BorderColor=gray, Width=3) EliminateSeams
HighwayPrimary way highway=primary Polyline (MinZoom=6, Color=#F7F496, BorderColor=gray, Width=3) EliminateSeams
HighwayPrimaryLink way highway=primary_link Polyline (MinZoom=6, Color=#E46D71, BorderColor=gray, Width=3) EliminateSeams
HighwayTrunk way highway=trunk Polyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=3) EliminateSeams
HighwayTrunkLink way highway=trunk_link Polyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=3) EliminateSeams
HighwayMotorway way highway=motorway Polyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=3) EliminateSeams
HighwayMotorwayLink way highway=motorway_link Polyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=3) EliminateSeams

Transport

Rule Name Targets Selector Template Options Comment
Rail way railway=rail Polyline (MinZoom=6, Color=darkgray, Width=2) EliminateSeams

Other Ways

Rule Name Targets Selector Template Options Comment
BoundaryNationalPark way boundary=national_park Polyline (MinZoom=9, Color=green, DashStyle=DashDot, Width=9:1.5;17:6)
Runway way aeroway=runway Polyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30)
Taxiway way aeroway=taxiway Polyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10)

Places

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


Borders

Rule Name Targets Selector Template Options Comment
LandBorder way boundary=administrative
.level2 admin_level=2 Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:2;9:4;17:8)
.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)
TerritorialWaters way boundary=maritime border_type=territorial
.betweenNations left:country=* right:country=* Polyline (MinZoom=1, MaxZoom=9,Color=red, DashStyle=DashDot, Width=1:2;9:4;17:8) Polyline (MinZoom=9,Color=#0000FF, Width=1) Show a border between nations the same as land border at low zoom
.* Polyline (MinZoom=9, Color=#0000FF, Width=1) All territorial waters, dark blue at high zoom
BaseLine way boundary=maritime border_type=baseline Polyline (MinZoom=8, Color=#0000FF, DashStyle=Dash, Width=1)
Contingency way boundary=maritime border_type=contingency Polyline (MinZoom=8, Color=#0000FF, DashStyle=Dot, Width=1)
EEZ {IconWay}} boundary=maritime border_type=eez Polyline (MinZoom=8, Color=#0000FF, DashStyle=Dot, Width=1)