User:MapperOG/Kosmos

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

This page contains a set of Kosmos special rendering rules created by StefanDausR. Rules are used to create an maxspeed overlay with transparent background.

Here you can see the rendered card: tiles@home with MaxSpeed-Overlay. I use data from osmxapi: http://www.informationfreeway.org/api/0.5/way[maxspeed=*][bbox=5,35,15,55]

URL of the rules to use in Kosmos: http://wiki.openstreetmap.org/index.php?title=MaxSpeed_Overlay_Kosmos_Rules

Options

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

Highways

Rule Name Targets Selector Template Options Comment
HighwayMotorwaySpeed way highway=* Text (MinZoom=13, Color=black, TagToUse=maxspeed, TextMode=WayCenter, FontName=Arial, FontStyle=bold, FontSize=12:5;17:14, OutlineColor=white, OutlineWidth=20%)
.MaxSpeed130 way maxspeed=130 Polyline (MinZoom=4, Color=#00BFFF, Width=4:0;11:7;17:10)

130

.MaxSpeed120 way maxspeed=120 Polyline (MinZoom=4, Color=#00FFFF, Width=4:0;11:7;17:10)

120

.MaxSpeed110 way maxspeed=110 Polyline (MinZoom=4, Color=#87CEEB, Width=4:0;11:7;17:10)

110

.MaxSpeed100 way maxspeed=100 Polyline (MinZoom=4, Color=#66CDAA, Width=4:0;11:7;17:10)

100

.MaxSpeed90 way maxspeed=90 Polyline (MinZoom=5, Color=#3CB371, Width=4:0;11:7;17:10)

90

.MaxSpeed80 way maxspeed=80 Polyline (MinZoom=5, Color=#32CD32, Width=6:0;11:7;17:10)

80

.MaxSpeed70 way maxspeed=70 Polyline (MinZoom=6, Color=#ADFF2F, Width=6:0;11:7;17:10)

70

.MaxSpeed60 way maxspeed=60 Polyline (MinZoom=6, Color=#FFDF00, Width=6:0;11:7;17:10)

60

.MaxSpeed50 way maxspeed=50 Polyline (MinZoom=6, Color=#FF9F00, Width=6:0;11:7;17:10)

50

.MaxSpeed40 way maxspeed=40 Polyline (MinZoom=6, Color=#FF6000, Width=6:0;11:7;17:10)

40

.MaxSpeed30 way maxspeed=30 Polyline (MinZoom=8, Color=#FF2000, Width=8:0;11:5;17:8)

30

.MaxSpeed25 way maxspeed=25 Polyline (MinZoom=8, Color=#C00000, Width=8:0;11:5;17:8)

25

.MaxSpeed20 way maxspeed=20 Polyline (MinZoom=8, Color=#800000, Width=8:0;11:5;17:8)

20

.MaxSpeed15 way maxspeed=15 Polyline (MinZoom=8, Color=#C05000, Width=8:0;11:5;17:8)

15

.MaxSpeed10 way maxspeed=10 Polyline (MinZoom=8, Color=#D56A00, Width=8:0;11:5;17:8)

10

.MaxSpeed7 way maxspeed=7 Polyline (MinZoom=8, Color=#AA5500, Width=8:0;11:5;17:8)

7

.MaxSpeedwalk way maxspeed=walk Polyline (MinZoom=8, Color=#AA5500, Width=8:0;11:5;17:8)

walk

.MaxSpeed6 way maxspeed=6 Polyline (MinZoom=8, Color=#905000, Width=8:0;11:5;17:8)

6

.MaxSpeed5 way maxspeed=5 Polyline (MinZoom=8, Color=#804000, Width=8:0;11:5;17:8)

5

.MaxSpeedno way maxspeed=no Polyline (MinZoom=4, Color=#0040FF, Width=4:0;11:7;17:10)

no

.MaxSpeednone way maxspeed=none Polyline (MinZoom=4, Color=#0040FF, Width=4:0;11:7;17:10)

none

.MaxSpeedunlimited way maxspeed=unlimited Polyline (MinZoom=4, Color=#0040FF, Width=4:0;11:7;17:10)

unlimited

.MaxSpeedvariable way maxspeed=variable Polyline (MinZoom=5, Color=#CC00FF, Width=6:0;11:7;17:10)

variable

.MaxSpeedsignals way maxspeed=signals Polyline (MinZoom=5, Color=#CC00FF, Width=6:0;11:7;17:10)

signals

.MaxSpeed_ way maxspeed=* Polyline (MinZoom=6, Color=#A0A0A0, Width=6:0;11:5;17:10)

???

Land Areas

Rule Name Targets Selector Template Options Comment
Residential area landuse=residential Polygon (Color=#DCDCDC)
Common area leisure=playground Polygon (Color=#CFECA8)