User:MapperOG/Kosmos

From OpenStreetMap Wiki
Jump to: navigation, 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)