User:Baeji/Compton Rendering Rules

From OpenStreetMap Wiki
Jump to navigation Jump to search

Explanation

This is the set of rendering rules used in my book to demonstrate how Kosmos works. It's a minimal set of rules designed to give a general explanation of the structure of Kosmos rules, a run-through of the most commonly used parameters with a few other details thrown in. It doesn't use the whole range of Kosmos' features, and you should read the rest of the documentation for the code to find out more.

Options

Option Value Comment
MinKosmosVersion 2.1 Minimum version of Kosmos needed to use these rules
LandBackgroundColor #88F8F8
SeaColor #B5D6F1

Rendering rules

Rule Name Targets Selector Template Options Comment
Residential area landuse=residential Polygon (Color=#FFBBBB)
HighwayTrunk way highway=trunk Polyline (MinZoom=6, Color=#008000, BorderColor=black, Width=6:1;17:14) EliminateSeams
HighwayTrunkLink way highway=trunk_link Polyline (MinZoom=6, Color=#008000, BorderColor=black, Width=6:1;17:14) EliminateSeams
HighwayUnclassified way highway=unclassified Polyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14) EliminateSeams
HighwayUnclassifiedText way highway=unclassified Text (MinZoom=10, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=10:4;15:6;17:9)
HighwayResidential way highway=residential Polyline (MinZoom=11, Color=white, BorderColor=black, Width=5:4;6:6;17:12) EliminateSeams
HighwayResidentialText way highway=residential Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwaySecondary way highway=secondary Polyline (MinZoom=8, Color=#FDBF6F, BorderColor=gray, Width=8:1;10:2;13:6;17:14) EliminateSeams
HighwaySecondaryText way highway=secondary Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
SocialClub node amenity=social_club Icon (MinZoom=6, IconUrl=http://wiki.openstreetmap.org/images/2/2c/Star-icon.png, Width=6:8;17:16)
SocialClubText node amenity=social_club Text (MinZoom=6, Color=black, TagToUse=name, FontName=Arial, FontStyle=Bold, FontSize=6:2;15:6;17:12, TextLineOffset=80%)