User:Fandarel/Kosmos
Jump to navigation
Jump to search
Introduction
This page contains a set of Kosmos rendering rules for special testing purpose (work in progress).
- See Kosmos Rendering Help for help on how to write rendering rules.
- See Tagwatch for more tags that could fit into this page
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) | |||
Wood | natural=wood | Polygon (Color=#99DB9C) | |||
Scrub | natural=scrub | Polygon (Color=#99EE9C) | |||
Fell | natural=fell | Polygon (Color=#CDDB69) | |||
Farm | landuse=farm | Polygon (Color=#F6EEB7) | |||
Farmland | landuse=farmland | Polygon (Color=#F6EEB7) | |||
Farmyard | landuse=farmyard | Polygon (Color=#FFFFCC) | |||
Railway | landuse=railway | Polygon (Color=#CC9966) | |||
Residential | landuse=residential | Polygon (Color=#DCDCDC) | |||
Industrial | landuse=industrial | Polygon (Color=#FEADB8) | |||
Commercial | landuse=commercial | Polygon (Color=#EFC8C8) | |||
Retail | landuse=retail | Polygon (Color=#F0DADA) | |||
Reservoir | landuse=reservoir | Polygon (Color=#B5D0D0) | |||
Basin | landuse=basin | Polygon (Color=#B5D0D0) | |||
Forest | landuse=forest | Polygon (Color=#CFECA8) | |||
Cemetery | landuse=cemetery | Polygon (Color=#A9CAAE, BackgroundColor=#75AC7D, HatchStyle=DashedVertical) | |||
Allotments | landuse=allotments | Polygon (Color=#CC9900) | |||
VillageGreen | landuse=village_green | Polygon (Color=#99FF99) | |||
Grass | landuse=grass | Polygon (Color=#99FF99) | |||
Common | landuse=common | Polygon (Color=#99FF99) | |||
Park | leisure=park | Polygon (Color=#C7F1A3) | |||
Pitch | leisure=pitch | Polygon (Color=#8AD2AE) | |||
GolfCourse | leisure=golf_course | Polygon (Color=#7CCC7C) | |||
Sport | sport=* | Polygon (Color=#8AD2AE) | |||
Swimming | sport=swimming | Polygon (Color=lightblue) | |||
ParkingArea | amenity=parking | Polygon (Color=#FFFF99) | |||
School | amenity=school | Polygon (Color=#F0F0D8) |
Water Features
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Water | natural=water | Polygon (Color=lightblue) | |||
Marsh | natural=marsh | Polygon (Color=blue, BackgroundColor=#00000000, BorderColor=blue, BorderWidth=1:1;12:1;15:3, HatchStyle=DashedHorizontal) | |||
River | waterway=river | Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true) | |||
Drain | waterway=drain | Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, 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 |
---|---|---|---|---|---|
HighwayPath | highway=path | Polyline (MinZoom=14, Color=gray, Width=14:1;15:2, DashStyle=Dot) | EliminateSeams | ||
HighwayBridleway | highway=bridleway | Polyline (MinZoom=14, Color=#DDDDDD, BorderColor=gray, Width=13:1;17:3) | EliminateSeams | ||
HighwayFootway | highway=footway | Polyline (MinZoom=14, Color=#FFDE93, BorderColor=gray, Width=1, DashStyle=Dot, Options=TopLevel ) | EliminateSeams | ||
HighwayTrack | highway=track | Polyline (MinZoom=13, Color=black, Width=13:1;17:3) | EliminateSeams | ||
HighwayUnclassified | highway=unclassified | Polyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:2;17:6) | EliminateSeams | ||
HighwayUnclassifiedText | highway=unclassified | Text (MinZoom=16, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9) | |||
HighwayResidential | highway=residential | Polyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14) | EliminateSeams | ||
HighwayResidentialText | highway=residential | Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9) | |||
HighwayService | highway=service | Polyline (MinZoom=12, Color=white, BorderColor=gray, Width=12:1;13:2;17:13) | EliminateSeams | ||
HighwayServiceText | highway=service | Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:8) | |||
HighwayTertiary | highway=tertiary | Polyline (MinZoom=10, Color=#F7F496, BorderColor=gray, Width=10:1;13:4;17:14) | EliminateSeams | ||
HighwayTertiaryText | highway=tertiary | Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9) | |||
HighwaySecondary | highway=secondary | EliminateSeams | |||
HighwaySecondaryText | highway=secondary | Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9) |
Natural
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Peak | natural=peak | Symbol (Type=Triangle, MinZoom=11, Color=gray, BorderColor=black, BorderWidth=15%, Size=13:6;17:20) Text (MinZoom=12, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=Italic, FontSize=12:6;17:15, TextLineOffset=-200%) |
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) |
Buildings
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
BuildingAny | building=* | Polygon (MinZoom=14, Color=thistle, BorderColor=#6B5B8E, BorderWidth=1) |