Kosmos landusage rendering

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

This page contains a set of Kosmos rendering rules to show the usage of the land rather than the streets itself. Please feel free to add more landtypes to complete the map.

  1. See Kosmos Rendering Help for help on how to write rendering rules.
  2. Before committing changes to the page, please make sure the rules are actually working. Try them with the latest version of Kosmos (2.00 or above), since they are not compatible with previous versions.
  3. 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 way natural=coastline Polyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)
Wood area natural=wood Polygon (Color=#99DB9C)
Scrub area natural=scrub Polygon (Color=#99EE9C)
Fell area natural=fell Polygon (Color=#CDDB69)
Farm area landuse=farm Polygon (Color=#F6EEB7)
Farmland area landuse=farmland Polygon (Color=#F6EEB7)
Farmyard area landuse=farmyard Polygon (Color=#FFFFCC)
Railway area landuse=railway Polygon (Color=#CC9966)
Residential area landuse=residential Polygon (Color=#DCDCDC)
Industrial area landuse=industrial Polygon (Color=#FEADB8)
Commercial area landuse=commercial Polygon (Color=#EFC8C8)
Retail area landuse=retail Polygon (Color=#F0DADA)
Reservoir area landuse=reservoir Polygon (Color=#B5D0D0)
Basin area landuse=basin Polygon (Color=#B5D0D0)
Forest area landuse=forest Polygon (Color=#CFECA8)
Cemetery area landuse=cemetery Polygon (Color=#A9CAAE, BackgroundColor=#75AC7D, HatchStyle=DashedVertical)
Allotments area landuse=allotments Polygon (Color=#CC9900)
VillageGreen area landuse=village_green Polygon (Color=#99FF99)
Grass area landuse=grass Polygon (Color=#99FF99)
Common area landuse=common Polygon (Color=#99FF99)
Park area leisure=park Polygon (Color=#C7F1A3)
Pitch area leisure=pitch Polygon (Color=#8AD2AE)
GolfCourse area leisure=golf_course Polygon (Color=#7CCC7C)
Common area leisure=common Polygon (Color=#CFECA8)
Sport area sport=* Polygon (Color=#8AD2AE)
Swimming area sport=swimming Polygon (Color=lightblue)
ParkingArea area amenity=parking Polygon (Color=#FFFF99)
School area amenity=school Polygon (Color=#F0F0D8)

Water Features

Rule Name Targets Selector Template Options Comment
Water area natural=water Polygon (Color=lightblue)
Marsh area natural=marsh Polygon (Color=blue, BackgroundColor=#00000000, BorderColor=blue, BorderWidth=1:1;12:1;15:3, HatchStyle=DashedHorizontal)
River way waterway=river Polyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true)
Drain way waterway=drain Polyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, 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
Highway area way highway=* Polyline (MinZoom=14, Color=gray, BorderColor=gray, Width=1) EliminateSeams
.area area=yes Polygon (MinZoom=14, Color=gray, BorderColor=gray)

Other Ways

Rule Name Targets Selector Template Options Comment
Rail way railway=* Polyline (MinZoom=14, Color=gray, BorderColor=gray, Width=1) EliminateSeams
CableCar way aerialway=* Polyline (MinZoom=14, Color=gray, Width=1)
Border way 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 way aeroway=runway Polyline (MinZoom=14, Color=#BBBBCC, Width=11:1;17:30)
Taxiway way aeroway=taxiway Polyline (MinZoom=14, 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)

Buildings

Rule Name Targets Selector Template Options Comment
BuildingAny area building=* Polygon (MinZoom=14, Color=thistle, BorderColor=#6B5B8E, BorderWidth=1)