Croyde Cycle Kosmos Rules

From OpenStreetMap Wiki
Jump to: navigation, search

Introduction

This page contains a set of Kosmos rendering rules to mock the Croyde Cycle Map. This is currently for experimental reasons to see if the maps could be created from OSM data and look similar.

Work in progress by LastGrape

Options

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

Land Areas

Rule Name Targets Selector Template Options Comment
Coastline Way natural=coastline Polyline (MinZoom=1, Color=#8BCCE5, Width=11:1;17:5, Curved=true)
Residential Area landuse=residential Polygon (Color=#AAAAAA)
GolfCourse Area leisure=golf_course Polygon (Color=#7CCC7C)
Beach Area natural=beach Polygon (Color=#FFCC99)

Water Features

Rule Name Targets Selector Template Options Comment
Water Area natural=water Polygon (Color=#000099)
River Way waterway=river Polyline (MinZoom=5, Color=#000099)
Stream Way waterway=stream Polyline (MinZoom=5, Color=#000099)
Land Area natural=land Polygon (Color=white)

Other Land Features

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

POIs

Rule Name Targets Selector Template Options Comment
CafeNode Node amenity=cafe Icon (MinZoom=10, IconUrl=http://www.livingwithdragons.com/maps/icons/croydecycle/cafe.gif, Width=12:20;17:30)
Text (MinZoom=10, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:9, TextLineOffset=-200%)
PubNode Node amenity=pub Icon (MinZoom=10, IconUrl=http://www.livingwithdragons.com/maps/icons/croydecycle/pub.gif, Width=12:20;17:30)
Text (MinZoom=10, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:9, TextLineOffset=-200%)
ParkingNode Node amenity=parking Icon (MinZoom=10, IconUrl=http://www.livingwithdragons.com/maps/icons/croydecycle/parking.gif, Width=12:10;17:15)
Text (MinZoom=10, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:9, TextLineOffset=-200%)
GolfNode Node leisure=golf_course Icon (MinZoom=10, IconUrl=http://www.livingwithdragons.com/maps/icons/croydecycle/golf.gif, Width=12:20;17:30)
Text (MinZoom=10, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:9, TextLineOffset=-200%)
CampingNode Node tourism=camp_site Icon (MinZoom=10, IconUrl=http://www.livingwithdragons.com/maps/icons/croydecycle/camping.gif, Width=12:20;17:30)
Text (MinZoom=10, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:9, TextLineOffset=-200%)
RecyclingNode Node amenity=recycling Icon (MinZoom=15, IconUrl=http://wiki.openstreetmap.org/images/e/ef/Recycling.png, Width=12:5;17:20) Recycling.png; only at high zoom levels to prevent clutter
TrafficSignals Node highway=traffic_signals Icon (MinZoom=16, IconUrl=http://wiki.openstreetmap.org/images/a/a1/Icon-highway_traffic_signals.png, Width=16:6;17:7) Icon-highway traffic signals.png
RailwayStation Node railway=station Symbol (Type=Diamond, MinZoom=13, Color=red, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)
Peak Node natural=peak Symbol (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=-150%)
PostOffice Node amenity=post_office Icon (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%)
GCR COMM POSTO.png

Highways

Rule Name Targets Selector Template Options Comment
HighwayFootway Way highway=footway Polyline (MinZoom=10, Color=black, DashStyle=Dash, BorderColor=white, Width=12:1;17:3) EliminateSeams
HighwayFootwayText Way highway=footway Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwaySteps Way highway=steps Polyline (MinZoom=13, Color=#FFDE93, DashStyle=Dot, BorderColor=gray, Width=13:1;17:6) EliminateSeams
HighwayBridleway Way highway=bridleway Polyline (MinZoom=13, Color=#DDDDDD, BorderColor=gray, Width=13:1;17:6) EliminateSeams
HighwayBridlewayText Way highway=bridleway Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayCycleway Way highway=cycleway Polyline (MinZoom=13, Color=#0202FE, DashStyle=Dash, Width=13:1;17:4) EliminateSeams
HighwayTrunk Way highway=trunk Polyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=6:1;17:14) EliminateSeams
HighwayTrunkLink Way highway=trunk_link Polyline (MinZoom=6, Color=#41A317, BorderColor=gray, Width=6:1;17:14) EliminateSeams
HighwayTertiary Way highway=tertiary Polyline (MinZoom=10, Color=#F4D77D, BorderColor=gray, Width=10:1;13:4;17:14) EliminateSeams
HighwayTertiaryText Way highway=tertiary Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPrimary Way highway=primary Polyline (MinZoom=6, Color=#F4D77D, BorderColor=gray, Width=6:1;17:14) EliminateSeams
.Bridge bridge=yes Polyline (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)
HighwayPrimaryText Way highway=primary Text (MinZoom=13, Color=#F4D77D, BorderColor=#E46D71, BorderWidth=2, BackgroundColor=white, TagToUse=ref, TextMode=WayCenter, FontName=Arial, FontStyle=bold, FontSize=13:8;17:12)
HighwayPrimaryLink Way highway=primary_link Polyline (MinZoom=6, Color=#F4D77D, BorderColor=gray, Width=6:1;17:14) EliminateSeams
HighwaySecondary Way highway=secondary Polyline (MinZoom=6, Color=#F4D77D, BorderColor=gray, Width=6:1;17:14) EliminateSeams
HighwaySecondaryText Way highway=secondary Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayUnclassified Way highway=unclassified Polyline (MinZoom=11, Color=#F4D77D, BorderColor=gray, Width=11:1;13:3;17:14) EliminateSeams
HighwayUnclassifiedText Way highway=unclassified Text (MinZoom=16, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayService Way highway=service Polyline (MinZoom=12, Color=#F4D77D, BorderColor=gray, Width=12:1;13:2;17:13) EliminateSeams
HighwayServiceText Way highway=service Text (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:5;17:8)
HighwayTrack Way highway=track Polyline (MinZoom=11, Color=black, BorderColor=gray, Width=10:1;17:2) EliminateSeams

Other Ways

Rule Name Targets Selector Template Options Comment
Rail Way railway=rail Polyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6) EliminateSeams
RailDisused Way railway=disused Polyline (MinZoom=10, Color=white, DashStyle=Dot, BorderColor=#DDDDDD, Width=10:1;17:4) EliminateSeams
CableCar Way aerialway=cable_car Symbol (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)
DragLift Way aerialway=drag_lift Symbol (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)
ChairLift Way aerialway=chair_lift Symbol (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)
Ferry Way route=ferry Polyline (MinZoom=8, Color=darkgray, DashStyle=Dot, Width=8:0.1;17:4)
Border Way boundary=administrative
.level2 admin_level=2 Polyline (MinZoom=1, Color=red, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level4 admin_level=4 Polyline (MinZoom=10, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)
.level8 admin_level=8 Polyline (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)
Runway Way aeroway=runway Polyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30)
Taxiway Way aeroway=taxiway Polyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10)


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, OutlineColor=white)
PlaceCity Node place=city Text (MinZoom=7, MaxZoom=14, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=7:10;17:30, OutlineColor=white, OutlineWidth=20%)
PlaceTown Node place=town Text (MinZoom=10, MaxZoom=15, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=10:10;17:25, OutlineColor=white)
PlaceVillage Node place=village Text (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20, OutlineColor=white)
PlaceIsland Node place=island Text (MinZoom=12, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20, OutlineColor=white)
PlaceSuburb Node place=suburb Text (MinZoom=13, MaxZoom=16, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20, OutlineColor=white)
PlaceHamlet Node place=hamlet Text (MinZoom=14, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14, OutlineColor=white)
PlaceLocality Node place=locality Text (MinZoom=10, MaxZoom=17, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=14:8;17:14, OutlineColor=white)
PlaceFarm Node place=farm Text (MinZoom=15, MaxZoom=19, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=15:8;17:13, OutlineColor=white)

Buildings

Rule Name Targets Selector Template Options Comment
BuildingResidential Area building=residential Polygon (MinZoom=12, Color=#F3D6B6, BorderColor=#6B5B8E, BorderWidth=1)
BuildingAny Area building=* 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)


Navaids

Rule Name Targets Selector Template Options Comment
NavaidBuoy Node man_made=buoy Symbol (Type=Diamond, MinZoom=11, Color=blue, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)
NavaidLighthouse Node man_made=lighthouse Symbol (Type=Triangle, MinZoom=10, Color=blue, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)

Routes

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