Kosmos max speed rendering

Introduction

This page contains a set of Kosmos rendering rules to highlight the maxspeed values.

  1. use transparent landuse areas
  2. colorize maxspeed vales from green (lowest) to red (highest)
  3. thin grey lines for all highways with no maxspeed value
  4. show speed values on zoom 14 and higher

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

Example: Max_speeds in Vienna's eighth district (Level 15).

Kosmos max speed rendering example

Options

Option Value Comment
MinKosmosVersion2.1Minimal version of Kosmos needed to use these rules
LandBackgroundColor#F8F8F8
SeaColor#B5D6F1

Land Areas

Rule Name Targets Selector Template Options Comment
Coastlinewaynatural=coastlinePolyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)
Woodareanatural=woodPolygon (Color=#7099DB9C)
Scrubareanatural=scrubPolygon (Color=#7099EE9C)
Fellareanatural=fellPolygon (Color=#70CDDB69)
Farmarealanduse=farmPolygon (Color=#70F6EEB7)
Farmlandarealanduse=farmlandPolygon (Color=#70F6EEB7)
Farmyardarealanduse=farmyardPolygon (Color=#70FFFFCC)
Residentialarealanduse=residentialPolygon (Color=#70DCDCDC)
Industrialarealanduse=industrialPolygon (Color=#70FEADB8)
Commercialarealanduse=commercialPolygon (Color=#70EFC8C8)
Retailarealanduse=retailPolygon (Color=#70F0DADA)
Reservoirarealanduse=reservoirPolygon (Color=#70B5D0D0)
Basinarealanduse=basinPolygon (Color=#70B5D0D0)
Forestarealanduse=forestPolygon (Color=#70CFECA8)
Cemeteryarealanduse=cemeteryPolygon (Color=#70A9CAAE, BackgroundColor=#7075AC7D, HatchStyle=DashedVertical)
Allotmentsarealanduse=allotmentsPolygon (Color=#70CC9900)
VillageGreenarealanduse=village_greenPolygon (Color=#7099FF99)
Grassarealanduse=grassPolygon (Color=#7099FF99)
Commonarealanduse=commonPolygon (Color=#7099FF99)
Parkarealeisure=parkPolygon (Color=#70C7F1A3)
Pitcharealeisure=pitchPolygon (Color=#708AD2AE)
GolfCoursearealeisure=golf_coursePolygon (Color=#707CCC7C)
Commonarealeisure=commonPolygon (Color=#70CFECA8)
Sportareasport=*Polygon (Color=#708AD2AE)
ParkingAreaareaamenity=parkingPolygon (Color=#70FFFF99)
Schoolareaamenity=schoolPolygon (Color=#70F0F0D8)

Water Features

Rule Name Targets Selector Template Options Comment
Waterareanatural=waterPolygon (Color=lightblue)
Marshareanatural=marshPolygon (Color=blue, BackgroundColor=#00000000, BorderColor=blue, BorderWidth=1:1;12:1;15:3, HatchStyle=DashedHorizontal)
Riverwaywaterway=riverPolyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true)
Drainwaywaterway=drainPolyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Streamwaywaterway=streamPolyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Canalwaywaterway=canalPolyline (MinZoom=5, Color=lightblue, Width=5:1;10:1;17:10, Curved=true)
Riverbankareawaterway=riverbankPolygon (Color=lightblue)
Landareanatural=landPolygon (Color=white)

Highways

Rule Name Targets Selector Template Options Comment
Living Streetarea wayhighway=living_streetPolyline (Color=#0000ff, BorderColor=#FF0000, Width=3)
Highwayarea wayhighway=*Polyline (Color=gray, BorderColor=gray, Width=1) Text (MinZoom=14, Color=black, TagToUse=maxspeed, FontName=Arial, FontStyle=regular, FontSize=11:6;17:9)EliminateSeams
. 10IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 11Polyline (Color=#006600, BorderColor=#006600, Width=3)
. 20IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 21Polyline (Color=#00CC00, BorderColor=#00CC00, Width=3)
. 30IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 31Polyline (Color=#00FF00, BorderColor=#00FF00, Width=3)
. 40IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 41Polyline (Color=#CCFF66, BorderColor=#CCFF66, Width=3)
. 50IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 51Polyline (Color=#FFFF33, BorderColor=#FFFF33, Width=3)
. 60IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 61Polyline (Color=#FFCC66, BorderColor=#FFCC66, Width=3)
. 70IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 71Polyline (Color=#FFCC00, BorderColor=#FFCC00, Width=3)
. 80IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 81Polyline (Color=#FF9999, BorderColor=#FF9999, Width=3)
. 100IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 101Polyline (Color=#FF9933, BorderColor=#FF9933, Width=3)
. 120IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 121Polyline (Color=#FF6633, BorderColor=#FF6633, Width=3)
. xxxIsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") > 121Polyline (Color=#FF0000, BorderColor=#FF0000, Width=3)

Other Ways

Rule Name Targets Selector Template Options Comment
Railwayrailway=*Polyline (MinZoom=14, Color=gray, BorderColor=gray,DashStyle=DashDot, Width=1)EliminateSeams
Borderwayboundary=administrative
.level2admin_level=2Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=2)
.level4admin_level=4Polyline (MinZoom=10, Color=red, DashStyle=DashDot, Width=2)
.level8admin_level=8Polyline (MinZoom=12, Color=red, DashStyle=Dot, Width=2))
.*Polyline (MinZoom=12, Color=red, DashStyle=DashDot, Width=2)
Runwaywayaeroway=runwayPolyline (MinZoom=14, Color=#BBBBCC, Width=11:1;17:30)
Taxiwaywayaeroway=taxiwayPolyline (MinZoom=14, Color=#BBBBCC, Width=12:1;17:10)


Places

Rule Name Targets Selector Template Options Comment
PlaceCountrynodeplace=countryText (MinZoom=3, MaxZoom=7, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=3:7;7:20, OutlineColor=white)
PlaceCitynodeplace=cityText (MinZoom=7, MaxZoom=14, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=7:10;17:30, OutlineColor=white, OutlineWidth=20%)
PlaceTownnodeplace=townText (MinZoom=10, MaxZoom=15, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=10:10;17:25, OutlineColor=white)
PlaceVillagenodeplace=villageText (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20, OutlineColor=white)
PlaceIslandnodeplace=islandText (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20, OutlineColor=white)
PlaceSuburbnodeplace=suburbText (MinZoom=13, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20, OutlineColor=white)
PlaceHamletnodeplace=hamletText (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14, OutlineColor=white)
PlaceLocalitynodeplace=localityText (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14, OutlineColor=white)
This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.