User:Mdeen/Kosmos WorldMap

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

This page contains a set of Kosmos rendering rules for a specialized map. These rules do not cover the whole range of OSM tagging currently in use, so you are free to 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 (2.00 or above), since they are not compatible with previous versions.

These rules make a map of the world with only country borders, and every country filled in.

URL of the rules to use in Kosmos: http://wiki.openstreetmap.org/index.php/User:Mdeen/Kosmos_WorldMap

Options

Option Value Comment
MinKosmosVersion 2.1 Minimal version of Kosmos needed to use these rules
LandBackgroundColor #F8F8F8
SeaColor #B5D6F1


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)

Borders

Rule Name Targets Selector Template Options Comment
Border way boundary=administrative
.level2 admin_level=2 Polyline (MinZoom=18, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level4 admin_level=4 Polyline (MinZoom=18, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level6 admin_level=8 Polyline (MinZoom=18, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;17:6)
.level8 admin_level=8 Polyline (MinZoom=18, Color=#A4A4A4, DashStyle=Dot, Width=1:1;9:1.5;17:6)
.* Polyline (MinZoom=18, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)

Countries

Rule Name Targets Selector Template Options Comment
Belgium area name=Belgium Polygon (MinZoom=13, Color=thistle, BorderColor=#6B5B8E, BorderWidth=1)
Text (MinZoom=1, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=16:6;17:10, TextMode=AreaCenter)
Germany area name=Germany Polygon (MinZoom=13, Color=red, BorderColor=#6B5B8E, BorderWidth=1)
Text (MinZoom=1, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=16:6;17:10, TextMode=AreaCenter)
The Netherlands area name=The Netherlands Polygon (MinZoom=13, Color=green, BorderColor=#6B5B8E, BorderWidth=1)
Text (MinZoom=1, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=16:6;17:10, TextMode=AreaCenter)

Routes

Rule Name Targets Selector Template Options Comment
RouteCycle relation type=route route=bicycle Polyline (MinZoom=18, Color=#50FF0718, Width=7:1;17:18, Curved=true)