Introduction
This page contains a set of Kosmos rendering rules to highlight the surfacevalues.
- use transparent landuse areas
- colorize surface vales more or less in colors that represent their values grass green, sand yello, mud brown, asphalt grey and so on
- thin lightgrey lines for all highways with no surface value
URL of the rules to use in Kosmos: http://wiki.openstreetmap.org/index.php?title=Kosmos_surface_rendering
Options
Option
|
Value
|
Comment
|
MinKosmosVersion |
2.1 |
Minimal version of Kosmos needed to use these rules
|
LandBackgroundColor |
#F8F8F8
|
SeaColor |
#B5D6F1
|
Land Areas
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
|
Highway |
 |
highway=* |
Polyline (Color=lightgray, BorderColor=lightgray, Width=1) |
EliminateSeams
|
. paved |
|
surface=paved |
Polyline (Color=#999999, BorderColor=#999999, Width=3)
|
. asphalt |
|
surface=asphalt |
Polyline (Color=#999999, BorderColor=#999999, Width=3)
|
. unpaved |
|
surface=unpaved |
Polyline (Color=#666666, BorderColor=#666666, Width=3)
|
. sand |
|
surface=sand |
Polyline (Color=#FFFF00, BorderColor=#FFFF00, Width=3)
|
. grass |
|
surface=grass |
Polyline (Color=#33FF00, BorderColor=#33FF00, Width=3)
|
. dirt |
|
surface=dirt |
Polyline (Color=#999900, BorderColor=#999900, Width=3)
|
. mud |
|
surface=dirt |
Polyline (Color=#999900, BorderColor=#999900, Width=3)
|
. ground |
|
surface=ground |
Polyline (Color=#CC9900, BorderColor=#CC9900, Width=3)
|
. cobblestone |
|
surface=cobblestone |
Polyline (Color=#FFCC00, BorderColor=#FFCC00, Width=3)
|
Other Ways
Rule Name
|
Targets
|
Selector
|
Template
|
Options
|
Comment
|
Rail |
 |
railway=* |
Polyline (MinZoom=14, Color=gray, BorderColor=gray,DashStyle=DashDot, Width=1) |
EliminateSeams
|
Border |
 |
boundary=administrative |
|
|
.level2 |
|
admin_level=2 |
Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=2) |
|
.level4 |
|
admin_level=4 |
Polyline (MinZoom=10, Color=red, DashStyle=DashDot, Width=2) |
|
.level8 |
|
admin_level=8 |
Polyline (MinZoom=12, Color=red, DashStyle=Dot, Width=2)) |
|
.* |
|
|
Polyline (MinZoom=12, Color=red, DashStyle=DashDot, Width=2) |
|
Runway |
 |
aeroway=runway |
Polyline (MinZoom=14, Color=#BBBBCC, Width=11:1;17:30)
|
Taxiway |
 |
aeroway=taxiway |
Polyline (MinZoom=14, 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) |
|