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
Coastlinenatural=coastlinePolyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)
Woodnatural=woodPolygon (Color=#99DB9C)
Beachnatural=beachPolygon (Color=#ffbc09)
Scrubnatural=scrubPolygon (Color=#99EE9C)
Fellnatural=fellPolygon (Color=#CDDB69)
Farmlanduse=farmPolygon (Color=#EFDD8B)
Attractiontourism=attractionPolygon (Color=#F2CAEA)
Residentiallanduse=residentialPolygon (Color=#DCDCDC)
Industriallanduse=industrialPolygon (Color=#FEADB8)
Brownfieldlanduse=brownfieldPolygon (Color=#FEADB8)
Constructionlanduse=constructionPolygon (Color=#A5826D)
Commerciallanduse=commercialPolygon (Color=#EFC8C8)
Retaillanduse=retailPolygon (Color=#F0DADA)
Reservoirlanduse=reservoirPolygon (Color=#B5D0D0)
Basinlanduse=basinPolygon (Color=#B5D0D0)
Forestlanduse=forestPolygon (Color=#CFECA8)
Cemeterylanduse=cemeteryPolygon (Color=#A9CAAE, BackgroundColor=#75AC7D, HatchStyle=DashedVertical)
Allotmentslanduse=allotmentsPolygon (Color=#C8B084)
Schoolamenity=schoolPolygon (Color=#F0F0D8)
Text (MinZoom=15, Color=black, TagToUse=name, FontName=Times New Roman, FontStyle=bold, FontSize=15:6;17:10, TextMode=AreaCenter)
Skiingsport=skiingPolygon (Color=#CDDB69)
HorseRacingsport=horse_racingPolygon (Color=peru)
Tennissport=tennisPolygon (Color=lightsalmon)
Swimmingsport=swimmingPolygon (Color=lightblue)
Parkleisure=parkPolygon (Color=#C7F1A3)
Text (MinZoom=13, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=13:6;17:10, TextMode=AreaCenter)
Playgroundleisure=playgroundPolygon (Color=#C7F1A3)
Pitchleisure=pitchPolygon (Color=#8AD2AE)
Sports Centreleisure=sports_centrePolygon (Color=#BDE3CB)
Stadiumleisure=stadiumPolygon (Color=#BDE3CB)
SportsTrackleisure=trackPolygon (Color=#BDE3CB)
GolfCourseleisure=golf_coursePolygon (Color=#7CCC7C)
Marinaleisure=marinaPolygon (Color=#B5D0D0)
Waterparkleisure=water_parkPolygon (Color=#B5D0D0)
Gardenleisure=gardenPolygon (Color=#C7F1A3)
Commonleisure=commonPolygon (Color=#CFECA8)
Recreation Groundlanduse=recreation_groundPolygon (Color=#BCE2CA)
Village Greenlanduse=village_greenPolygon (Color=#BCE2CA)
ParkingAreaamenity=parkingPolygon (Color=#F6EEB7)
RailwayArealanduse=railwayPolygon (Color=#CCCCCC)
PowerSubstationpower=sub_stationPolygon (Color=#CCCCCC)

Water Features

Rule Name Targets Selector Template Options Comment
Waternatural=waterPolygon (Color=lightblue)
Marshnatural=marshPolygon (Color=blue, BackgroundColor=#00000000, BorderColor=blue, BorderWidth=1:1;12:1;15:3, HatchStyle=DashedHorizontal)
Riverwaterway=riverPolyline (MinZoom=5, Color=lightblue, Width=5:1;10:2;17:14, Curved=true)
Drainwaterway=drainPolyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Streamwaterway=streamPolyline (MinZoom=13, Color=lightblue, Width=13:1;17:6, Curved=true)
Canalwaterway=canalPolyline (MinZoom=5, Color=lightblue, Width=5:1;10:1;17:10, Curved=true)
Riverbankwaterway=riverbankPolygon (Color=lightblue)
Landnatural=landPolygon (Color=white)

Other Land Features

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

POIs

Rule Name Targets Selector Template Options Comment
RestaurantNodeamenity=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%)
CafeNodeamenity=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%)
PubNodeamenity=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%)
RecyclingNodeamenity=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
ParkingNodeamenity=parkingIcon (MinZoom=13, IconUrl=http://wiki.openstreetmap.org/images/7/74/Parking.png, Width=12:5;17:20)
SubwayEntrancerailway=subway_entranceIcon (MinZoom=13, IconUrl=http://wiki.openstreetmap.org/w/images/5/5c/Subway.png, Width=12:20;17:24)
Treesnatural=treeIcon (MinZoom=12, IconUrl=http://wiki.openstreetmap.org/w/images/6/6d/Trees01.png, Width=12:13;17:16)
TrafficSignalshighway=traffic_signalsIcon (MinZoom=16, IconUrl=http://wiki.openstreetmap.org/images/a/a1/Icon-highway_traffic_signals.png, Width=16:6;17:7)
RailwayStationrailway=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%)
TramStoprailway=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%)
RailHaltrailway=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%)
Peaknatural=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%)
PostOfficeamenity=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
HighwayFootwayhighway=footwayPolyline (MinZoom=13, Color=#FFDE93, BorderColor=gray, Width=13:1;17:6)EliminateSeams
HighwayFootwayTexthighway=footwayText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayStepshighway=stepsPolyline (MinZoom=13, Color=#FFDE93, DashStyle=Dot, BorderColor=gray, Width=13:1;17:6)EliminateSeams
HighwayBridlewayhighway=bridlewayPolyline (MinZoom=13, Color=#DDDDDD, BorderColor=gray, Width=13:1;17:6)EliminateSeams
HighwayBridlewayTexthighway=bridlewayText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayCiclewayhighway=cyclewayPolyline (MinZoom=13, Color=#0202FE, DashStyle=Dash, Width=13:1;17:4)EliminateSeams
HighwayUnpavedhighway=unpavedPolyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=11:1;14:3;17:10)EliminateSeams
HighwayUnpavedTexthighway=unpavedText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayUnsurfacedhighway=unsurfacedPolyline (MinZoom=6, Color=red, Width=11:14)EliminateSeamsdeprecated
HighwayUnclassifiedhighway=unclassifiedPolyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14)EliminateSeams
HighwayUnclassifiedTexthighway=unclassifiedText (MinZoom=16, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPedestrianhighway=pedestrianPolyline (MinZoom=13, Color=lightgray, BorderColor=gray, Width=14:3;17:14)EliminateSeams
HighwayPedestrianAreahighway=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
HighwayPedestrianTexthighway=pedestrianText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayResidentialhighway=residentialPolyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14)EliminateSeams
HighwayResidentialTexthighway=residentialText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayLivingStreethighway=living_streetPolyline (MinZoom=11, Color=lightgray, BorderColor=gray, Width=11:1;13:3;17:14)EliminateSeams
HighwayLivingStreetTexthighway=living_streetText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayServicehighway=servicePolyline (MinZoom=12, Color=white, BorderColor=gray, Width=12:1;13:2;17:13)EliminateSeams
HighwayServiceTexthighway=serviceText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:8)
HighwayMinorhighway=minorPolyline (MinZoom=12, Color=white, BorderColor=gray, Width=12:1;13:2;17:13)EliminateSeams
HighwayMinorTexthighway=minorText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:8)
HighwayTrackhighway=trackPolyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=11:1;14:3;17:10)EliminateSeams
.surfacesurface=grassPolyline (MinZoom=11, Color=#A6FF6A, BorderColor=gray, Width=11:1;14:2;17:6)EliminateSeams
HighwayTertiaryhighway=tertiaryPolyline (MinZoom=10, Color=#F7F496, BorderColor=gray, Width=10:1;13:4;17:14)EliminateSeams
HighwayTertiaryTexthighway=tertiaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwaySecondaryhighway=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)
HighwaySecondaryTexthighway=secondaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPrimaryhighway=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)
HighwayPrimaryTexthighway=primaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPrimaryLinkhighway=primary_linkPolyline (MinZoom=6, Color=#E46D71, BorderColor=gray, Width=6:1;17:14)EliminateSeams
HighwayTrunkhighway=trunkPolyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=6:1;17:14)EliminateSeams
HighwayTrunkLinkhighway=trunk_linkPolyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=6:1;17:14)EliminateSeams
HighwayMotorwayhighway=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)
HighwayMotorwayLinkhighway=motorway_linkPolyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=6:1;17:8)EliminateSeams

Other Ways

Rule Name Targets Selector Template Options Comment
Railrailway=railPolyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6)EliminateSeams
Subwayrailway=subwayPolyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:4)EliminateSeams
Tramrailway=tramPolyline (MinZoom=6, Color=black, DashStyle=Dot, BorderColor=gray, Width=6:1;17:4)EliminateSeams
LightRailrailway=light_railPolyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:4)EliminateSeams
RailDisusedrailway=disusedPolyline (MinZoom=10, Color=white, DashStyle=Dot, BorderColor=#DDDDDD, Width=10:1;17:4)EliminateSeams
CableCaraerialway=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)
DragLiftaerialway=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)
ChairLiftaerialway=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)
Ferryroute=ferryPolyline (MinZoom=8, Color=darkgray, DashStyle=Dot, Width=8:0.1;17:4)
Borderboundary=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)
Runwayaeroway=runwayPolyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30)
Taxiwayaeroway=taxiwayPolyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10)
powerlinepower=linePolyline (MinZoom=11, Color=gray, Width=11:1;13:1;17:1)EliminateSeams
ditchbarrier=ditchPolyline (MinZoom=12, Color=white, BorderColor=gray, Width=12:0.5;17:3)
power towerpower=towerSymbol (Type=Diamond, MinZoom=13, Color=white, BorderColor=black, BorderWidth=10%, Size=13:4;17:15)

Places

Rule Name Targets Selector Template Options Comment
PlaceCountryplace=countryText (MinZoom=3, MaxZoom=7, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=3:7;7:20)
PlaceCityplace=cityText (MinZoom=7, MaxZoom=14, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=7:10;17:30)
PlaceTownplace=townText (MinZoom=10, MaxZoom=15, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=10:10;17:25)
PlaceVillageplace=villageText (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceIslandplace=islandText (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
PlaceSuburbplace=suburbText (MinZoom=13, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20)
PlaceHamletplace=hamletText (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
PlaceLocalityplace=localityText (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14)
PlaceFarmplace=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
BuildingResidentialbuilding=residentialPolygon (MinZoom=12, Color=#F3D6B6, BorderColor=#6B5B8E, BorderWidth=1)
BuildingApartmentsbuilding=apartmentsPolygon (MinZoom=12, Color=#F3D6B6, BorderColor=#6B5B8E, BorderWidth=1)
BuildingDetachedbuilding=detachedPolygon (MinZoom=12, Color=#F2A859, BorderColor=#6B5B8E, BorderWidth=1)
BuildingSemibuilding=semiPolygon (MinZoom=12, Color=#F3D6B6, BorderColor=#6B5B8E, BorderWidth=1)
BuildingAnybuilding=*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
NavaidBuoyman_made=buoySymbol (Type=Diamond, MinZoom=11, Color=blue, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)
NavaidLighthouseman_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.