User:Gustavf/Kosmos-3
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 | natural=coastline | Polyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true) |
Water Features
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Water | natural=water | Polygon (Color=lightblue) | |||
River | waterway=river | Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true) | |||
Stream | waterway=stream | Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true) | |||
Canal | waterway=canal | Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:1;17:10, Curved=true) | |||
Riverbank | waterway=riverbank | Polygon (Color=lightblue) | |||
Land | natural=land | Polygon (Color=white) |
Highways
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
HighwayUnpaved | highway=unpaved | Polyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=2) | EliminateSeams | ||
HighwayUnclassified | highway=unclassified | Polyline (MinZoom=11, Color=gray, Width=2) | EliminateSeams | ||
HighwayPedestrian | highway=pedestrian | Polyline (MinZoom=13, Color=gray, Width=2) | EliminateSeams | ||
HighwayResidential | highway=residential | Polyline (MinZoom=11, Color=gray, Width=2) | EliminateSeams | ||
HighwayService | highway=service | Polyline (MinZoom=12, Color=gray, Width=2) | EliminateSeams | ||
HighwayMinor | highway=minor | Polyline (MinZoom=12, Color=gray, Width=2) | EliminateSeams | ||
HighwayTrack | highway=track | Polyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=2) | EliminateSeams | ||
HighwayTertiary | highway=tertiary | Polyline (MinZoom=10, Color=#F7F496, BorderColor=gray, Width=2) | EliminateSeams | ||
HighwaySecondary | highway=secondary | Polyline (MinZoom=6, Color=#F7F496, BorderColor=gray, Width=3) | EliminateSeams | ||
HighwayPrimary | highway=primary | Polyline (MinZoom=6, Color=#F7F496, BorderColor=gray, Width=3) | EliminateSeams | ||
HighwayPrimaryLink | highway=primary_link | Polyline (MinZoom=6, Color=#E46D71, BorderColor=gray, Width=3) | EliminateSeams | ||
HighwayTrunk | highway=trunk | Polyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=3) | EliminateSeams | ||
HighwayTrunkLink | highway=trunk_link | Polyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=3) | EliminateSeams | ||
HighwayMotorway | highway=motorway | Polyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=3) | EliminateSeams | ||
HighwayMotorwayLink | highway=motorway_link | Polyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=3) | EliminateSeams |
Transport
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Rail | railway=rail | Polyline (MinZoom=6, Color=darkgray, Width=2) | EliminateSeams |
Other Ways
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
BoundaryNationalPark | boundary=national_park | Polyline (MinZoom=9, Color=green, DashStyle=DashDot, Width=9:1.5;17:6) | |||
Runway | aeroway=runway | Polyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30) | |||
Taxiway | aeroway=taxiway | Polyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10) |
Places
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
PlaceCountry | place=country | Text (MinZoom=3, MaxZoom=7, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=3:7;7:20, OutlineColor=white) | |||
PlaceCity | 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 | place=town | Text (MinZoom=10, MaxZoom=15, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=10:10;17:25, OutlineColor=white) | |||
PlaceVillage | place=village | Text (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20, OutlineColor=white) | |||
PlaceIsland | place=island | Text (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20, OutlineColor=white) | |||
PlaceSuburb | place=suburb | Text (MinZoom=13, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20, OutlineColor=white) | |||
PlaceHamlet | place=hamlet | Text (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14, OutlineColor=white) | |||
PlaceLocality | place=locality | Text (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14, OutlineColor=white) | |||
PlaceFarm | 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 | 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 | 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 | boundary=maritime border_type=baseline | Polyline (MinZoom=8, Color=#0000FF, DashStyle=Dash, Width=1) | |||
Contingency | 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) |