Maritime borders/Kosmos 3

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