Kosmos standard rules

This page describes a historic artifact in the history of OpenStreetMap. It does not reflect the current situation, but instead documents the historical concepts, issues, or ideas.
About
This page contains the central standard set of rendering rules for Kosmos version 1.x. A newer version Kosmos 2.x has a similar wiki page: Kosmos General Purpose Rules.
Impact on OpenStreetMap
Kosmos was a popular rendering software, these information was the foundation of many other map styles.
Reason for being historic
Kosmos was superseded by Maperitive. It is no longer possible to download Kosmos. Nobody is actively using these rendering rules. The idea of hosting rendering rules on the wiki, and the format used, may be of vague historical interest.
Captured time
2010-09-09

Introduction

These rules do not cover the whole range of OSM tagging currently in use, so you are free to edit these rules and add new ones if you feel something is missing. However a couple of things should be noted:

  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 (1.10 or above), since they are not compatible with previous versions.
  3. These rules are intended for a general-purpose map, so if you want to create specialized maps, the preferred way is to create a new rules page (see Category:Kosmos_rules).

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=#99DB9C)
Beachareanatural=beachPolygon (Color=#ffbc09)
Scrubareanatural=scrubPolygon (Color=#99EE9C)
Fellareanatural=fellPolygon (Color=#CDDB69)
Farmarealanduse=farmPolygon (Color=#EFDD8B)
Attractionareatourism=attractionPolygon (Color=#F2CAEA)
Residentialarealanduse=residentialPolygon (Color=#DCDCDC)
Industrialarealanduse=industrialPolygon (Color=#FEADB8)
Brownfieldarealanduse=brownfieldPolygon (Color=#FEADB8)
Constructionarealanduse=constructionPolygon (Color=#A5826D)
Commercialarealanduse=commercialPolygon (Color=#EFC8C8)
Retailarealanduse=retailPolygon (Color=#F0DADA)
Reservoirarealanduse=reservoirPolygon (Color=#B5D0D0)
Basinarealanduse=basinPolygon (Color=#B5D0D0)
Forestarealanduse=forestPolygon (Color=#CFECA8)
Cemeteryarealanduse=cemeteryPolygon (Color=#A9CAAE, BackgroundColor=#75AC7D, HatchStyle=DashedVertical)
Allotmentsarealanduse=allotmentsPolygon (Color=#C8B084)
Schoolareaamenity=schoolPolygon (Color=#F0F0D8)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Times New Roman, FontStyle=bold, FontSize=15:6;17:10, TextMode=AreaCenter)
Skiingareasport=skiingPolygon (Color=#CDDB69)
HorseRacingareasport=horse_racingPolygon (Color=peru)
Tennisareasport=tennisPolygon (Color=lightsalmon)
Swimmingareasport=swimmingPolygon (Color=lightblue)
Parkarealeisure=parkPolygon (Color=#C7F1A3)
Text (MinZoom=13, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Playgroundarealeisure=playgroundPolygon (Color=#C7F1A3)
Pitcharealeisure=pitchPolygon (Color=#8AD2AE)
Sports Centrearealeisure=sports_centrePolygon (Color=#BDE3CB)
Stadiumarealeisure=stadiumPolygon (Color=#BDE3CB)
SportsTrackarealeisure=trackPolygon (Color=#BDE3CB)
GolfCoursearealeisure=golf_coursePolygon (Color=#7CCC7C)
Marinaarealeisure=marinaPolygon (Color=#B5D0D0)
Waterparkarealeisure=water_parkPolygon (Color=#B5D0D0)
Gardenarealeisure=gardenPolygon (Color=#C7F1A3)
Commonarealeisure=commonPolygon (Color=#CFECA8)
Recreation Groundarealanduse=recreation_groundPolygon (Color=#BCE2CA)
Village Greenarealanduse=village_greenPolygon (Color=#BCE2CA)
ParkingAreaareaamenity=parkingPolygon (Color=#F6EEB7)
RailwayAreaarealanduse=railwayPolygon (Color=#CCCCCC)
PowerSubstationareapower=sub_stationPolygon (Color=#CCCCCC)

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)

Other Land Features

Rule Name Targets Selector Template Options Comment
Contourswayele=*for elevation contours generated by Srtm2Osm
.MajorwayValueNum(e,"ele") % 100 = 0Polyline (MinZoom=11, Color=#B0AD8852, Width=11:1;12:2, Curved=true)Major contours (100m ones)
.*wayPolyline (MinZoom=12, Color=#B0AD8852, Width=1, Curved=true)all other contours

POIs

Rule Name Targets Selector Template Options Comment
RestaurantNodenodeamenity=restaurantIcon (MinZoom=13, IconUrl=http://wiki.openstreetmap.org/images/5/58/Restaurant.png, Width=12:5;17:20)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:9, TextLineOffset=-200%)
CafeNodenodeamenity=cafeIcon (MinZoom=13, IconUrl=http://wiki.openstreetmap.org/images/e/e9/Coffee.png, Width=12:5;17:20)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:9, TextLineOffset=-200%)
PubNodenodeamenity=pubIcon (MinZoom=13, IconUrl=http://wiki.openstreetmap.org/images/2/25/Amenity-pub.png, Width=12:5;17:20)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:9, TextLineOffset=-200%)
RecyclingNodenodeamenity=recyclingIcon (MinZoom=15, IconUrl=http://wiki.openstreetmap.org/images/e/ef/Recycling.png, Width=12:5;17:20); only at high zoom levels to prevent clutter
ParkingNodenodeamenity=parkingIcon (MinZoom=13, IconUrl=http://wiki.openstreetmap.org/images/7/74/Parking.png, Width=12:5;17:20)
SubwayEntrancenoderailway=subway_entranceIcon (MinZoom=13, IconUrl=http://wiki.openstreetmap.org/w/images/5/5c/Subway.png, Width=12:20;17:24)
Treesnodenatural=treeIcon (MinZoom=12, IconUrl=http://wiki.openstreetmap.org/w/images/6/6d/Trees01.png, Width=12:13;17:16)
TrafficSignalsnodehighway=traffic_signalsIcon (MinZoom=16, IconUrl=http://wiki.openstreetmap.org/images/a/a1/Icon-highway_traffic_signals.png, Width=16:6;17:7)
RailwayStationnoderailway=stationSymbol (Type=Diamond, MinZoom=13, Color=red, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)
Text (MinZoom=12, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:6;17:14, TextLineOffset=-170%)
TramStopnoderailway=tram_stopSymbol (Type=Diamond, MinZoom=14, Color=red, BorderColor=black, BorderWidth=15%, Size=10:4;14:8)
Text (MinZoom=12, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:6;17:14, TextLineOffset=-170%)
RailHaltnoderailway=haltSymbol (Type=Triangle, MinZoom=14, Color=red, BorderColor=black, BorderWidth=15%, Size=10:4;14:8)
Text (MinZoom=12, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:6;17:14, TextLineOffset=-170%)
Peaknodenatural=peakSymbol (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%)
PostOfficenodeamenity=post_officeIcon (MinZoom=15, IconUrl=http://wiki.openstreetmap.org/images/b/b4/GCR_COMM_POSTO.png, Width=12:5;17:20)
Text (MinZoom=16, Color=black, TagToUse=name;ref, FontName=Trebuchet MS, FontStyle=Italic, FontSize=16:6;17:10, TextLineOffset=-200%)

Highways

Rule Name Targets Selector Template Options Comment
HighwayFootwaywayhighway=footwayPolyline (MinZoom=13, Color=#FFDE93, BorderColor=gray, Width=13:1;17:6)EliminateSeams
HighwayFootwayTextwayhighway=footwayText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayStepswayhighway=stepsPolyline (MinZoom=13, Color=#FFDE93, DashStyle=Dot, BorderColor=gray, Width=13:1;17:6)EliminateSeams
HighwayBridlewaywayhighway=bridlewayPolyline (MinZoom=13, Color=#DDDDDD, BorderColor=gray, Width=13:1;17:6)EliminateSeams
HighwayBridlewayTextwayhighway=bridlewayText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayCiclewaywayhighway=cyclewayPolyline (MinZoom=13, Color=#0202FE, DashStyle=Dash, Width=13:1;17:4)EliminateSeams
HighwayUnpavedwayhighway=unpavedPolyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=11:1;14:3;17:10)EliminateSeams
HighwayUnpavedTextwayhighway=unpavedText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayUnsurfacedwayhighway=unsurfacedPolyline (MinZoom=6, Color=red, Width=11:14)EliminateSeamsdeprecated
HighwayUnclassifiedwayhighway=unclassifiedPolyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14)EliminateSeams
HighwayUnclassifiedTextwayhighway=unclassifiedText (MinZoom=16, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPedestrianwayhighway=pedestrianPolyline (MinZoom=13, Color=lightgray, BorderColor=gray, Width=14:3;17:14)EliminateSeams
HighwayPedestrianAreaareahighway=pedestrian area=yesPolygon (MinZoom=13, Color=lightgray, BorderColor=gray, BorderWidth=1)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9, TextMode=AreaCenter)
EliminateSeams
HighwayPedestrianTextwayhighway=pedestrianText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayResidentialwayhighway=residentialPolyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14)EliminateSeams
HighwayResidentialTextwayhighway=residentialText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayLivingStreetwayhighway=living_streetPolyline (MinZoom=11, Color=lightgray, BorderColor=gray, Width=11:1;13:3;17:14)EliminateSeams
HighwayLivingStreetTextwayhighway=living_streetText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayServicewayhighway=servicePolyline (MinZoom=12, Color=white, BorderColor=gray, Width=12:1;13:2;17:13)EliminateSeams
HighwayServiceTextwayhighway=serviceText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:8)
HighwayMinorwayhighway=minorPolyline (MinZoom=12, Color=white, BorderColor=gray, Width=12:1;13:2;17:13)EliminateSeams
HighwayMinorTextwayhighway=minorText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:8)
HighwayTrackwayhighway=trackPolyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=11:1;14:3;17:10)EliminateSeams
.surfacewaysurface=grassPolyline (MinZoom=11, Color=#A6FF6A, BorderColor=gray, Width=11:1;14:2;17:6)EliminateSeams
HighwayTertiarywayhighway=tertiaryPolyline (MinZoom=10, Color=#F7F496, BorderColor=gray, Width=10:1;13:4;17:14)EliminateSeams
HighwayTertiaryTextwayhighway=tertiaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwaySecondarywayhighway=secondaryEliminateSeams
.Bridgebridge=yesPolyline (MinZoom=8, Color=#FDBF6F, BorderColor=gray, Width=8:1;10:2;13:6;17:14, BorderWidth=30%)
.*Polyline (MinZoom=8, Color=#FDBF6F, BorderColor=gray, Width=8:1;10:2;13:6;17:14)
HighwaySecondaryTextwayhighway=secondaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPrimarywayhighway=primaryEliminateSeams
.Bridgebridge=yesPolyline (MinZoom=6, Color=#E46D71, BorderColor=gray, Width=6:0;11:3;17:14, BorderWidth=30%)
.*Polyline (MinZoom=6, Color=#E46D71, BorderColor=gray, Width=6:0;11:3;17:14)
HighwayPrimaryTextwayhighway=primaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPrimaryLinkwayhighway=primary_linkPolyline (MinZoom=6, Color=#E46D71, BorderColor=gray, Width=6:1;17:14)EliminateSeams
HighwayTrunkwayhighway=trunkPolyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=6:1;17:14)EliminateSeams
HighwayTrunkLinkwayhighway=trunk_linkPolyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=6:1;17:14)EliminateSeams
HighwayMotorwaywayhighway=motorwayEliminateSeams
.Bridgebridge=yesPolyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=6:1;17:14, BorderWidth=30%)
.*Polyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=6:1;17:14)
HighwayMotorwayLinkwayhighway=motorway_linkPolyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=6:1;17:8)EliminateSeams

Other Ways

Rule Name Targets Selector Template Options Comment
Railwayrailway=railPolyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6)EliminateSeams
Subwaywayrailway=subwayPolyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:4)EliminateSeams
Tramwayrailway=tramPolyline (MinZoom=6, Color=black, DashStyle=Dot, BorderColor=gray, Width=6:1;17:4)EliminateSeams
LightRailwayrailway=light_railPolyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:4)EliminateSeams
RailDisusedwayrailway=disusedPolyline (MinZoom=10, Color=white, DashStyle=Dot, BorderColor=#DDDDDD, Width=10:1;17:4)EliminateSeams
CableCarwayaerialway=cable_carSymbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=20%, BorderColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:3)
DragLiftwayaerialway=drag_liftSymbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=10%, BorderColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:2)
ChairLiftwayaerialway=chair_liftSymbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=10%, BorderColor=black, BackgroundColor=black, Size=12:2;17:10)
Polyline (MinZoom=12, Color=black, Width=12:0.5;17:2)
Ferrywayroute=ferryPolyline (MinZoom=8, Color=darkgray, DashStyle=Dot, Width=8:0.1;17:4)
Borderwayboundary=administrative
.level2admin_level=2Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level4admin_level=4Polyline (MinZoom=10, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level8admin_level=8Polyline (MinZoom=12, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;5:5))
.*Polyline (MinZoom=12, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
Runwaywayaeroway=runwayPolyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30)
Taxiwaywayaeroway=taxiwayPolyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10)
powerlinewaypower=linePolyline (MinZoom=11, Color=gray, Width=11:1;13:1;17:1)EliminateSeams
ditchwaybarrier=ditchPolyline (MinZoom=12, Color=white, BorderColor=gray, Width=12:0.5;17:3)
power towernodepower=towerSymbol (Type=Diamond, MinZoom=13, Color=white, BorderColor=black, BorderWidth=10%, Size=13:4;17:15)

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)
PlaceCitynodeplace=cityText (MinZoom=7, MaxZoom=14, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=7:10;17:30)
PlaceTownnodeplace=townText (MinZoom=10, MaxZoom=15, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=10:10;17:25)
PlaceVillagenodeplace=villageText (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceIslandnodeplace=islandText (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceSuburbnodeplace=suburbText (MinZoom=13, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20)
PlaceHamletnodeplace=hamletText (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
PlaceLocalitynodeplace=localityText (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
PlaceFarmnodeplace=farmText (MinZoom=15, MaxZoom=19, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=15:8;17:13)

Buildings

Rule Name Targets Selector Template Options Comment
BuildingResidentialareabuilding=residentialPolygon (MinZoom=12, Color=#F3D6B6, BorderColor=#6B5B8E, BorderWidth=1)
BuildingApartmentsareabuilding=apartmentsPolygon (MinZoom=12, Color=#F3D6B6, BorderColor=#6B5B8E, BorderWidth=1)
BuildingDetachedareabuilding=detachedPolygon (MinZoom=12, Color=#F2A859, BorderColor=#6B5B8E, BorderWidth=1)
BuildingSemiareabuilding=semiPolygon (MinZoom=12, Color=#F3D6B6, BorderColor=#6B5B8E, BorderWidth=1)
BuildingAnyareabuilding=*Polygon (MinZoom=13, Color=thistle, BorderColor=#6B5B8E, BorderWidth=1)
Text (MinZoom=16, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=16:6;17:10, TextMode=AreaCenter)
Rule Name Targets Selector Template Options Comment
NavaidBuoynodeman_made=buoySymbol (Type=Diamond, MinZoom=11, Color=blue, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)
NavaidLighthousenodeman_made=lighthouseSymbol (Type=Triangle, MinZoom=10, Color=blue, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)
This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.