User:Lübeck/Kosmos-rules-ShowUser

From OpenStreetMap Wiki
Jump to: navigation, search

Introduction

URL of the rules to use in Kosmos: http://wiki.openstreetmap.org/index.php?title=Kosmos_max_speed_rendering

  • Map based on [1].
  • Change to based map: no path, no footway
  • Übersicht mit den KOSMOS-Rules [2].

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=#7099DB9C)
Scrub Area natural=scrub Polygon (Color=#7099EE9C)
Fell Area natural=fell Polygon (Color=#70CDDB69)
Farm Area landuse=farm Polygon (Color=#70F6EEB7)
Farmland Area landuse=farmland Polygon (Color=#70F6EEB7)
Farmyard Area landuse=farmyard Polygon (Color=#70FFFFCC)
Residential Area landuse=residential Polygon (Color=#70DCDCDC)
Industrial Area landuse=industrial Polygon (Color=#70FEADB8)
Commercial Area landuse=commercial Polygon (Color=#70EFC8C8)
Retail Area landuse=retail Polygon (Color=#70F0DADA)
Reservoir Area landuse=reservoir Polygon (Color=#70B5D0D0)
Basin Area landuse=basin Polygon (Color=#70B5D0D0)
Forest Area landuse=forest Polygon (Color=#70CFECA8)
Cemetery Area landuse=cemetery Polygon (Color=#70A9CAAE, BackgroundColor=#7075AC7D, HatchStyle=DashedVertical)
Allotments Area landuse=allotments Polygon (Color=#70CC9900)
VillageGreen Area landuse=village_green Polygon (Color=#7099FF99)
Grass Area landuse=grass Polygon (Color=#7099FF99)
Common Area landuse=common Polygon (Color=#7099FF99)
Park Area leisure=park Polygon (Color=#70C7F1A3)
Pitch Area leisure=pitch Polygon (Color=#708AD2AE)
GolfCourse Area leisure=golf_course Polygon (Color=#707CCC7C)
Common Area leisure=common Polygon (Color=#70CFECA8)
Sport Area sport=* Polygon (Color=#708AD2AE)
ParkingArea Area amenity=parking Polygon (Color=#70FFFF99)
School Area amenity=school Polygon (Color=#70F0F0D8)

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 (Color=gray, BorderColor=gray, Width=1) Text (MinZoom=14, Color=black, TagToUse=maxspeed, FontName=Arial, FontStyle=regular, FontSize=11:6;17:9) EliminateSeams
. xxx IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") Polyline (Color=#FF0000, BorderColor=#FF0000, Width=5)

Other Ways

Rule Name Targets Selector Template Options Comment
Rail Way railway=* Polyline (MinZoom=14, Color=black, BorderColor=gray,DashStyle=DashDot, Width=5) EliminateSeams
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)