User:MapperOG/Kosmos
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 | highway=* | Text (MinZoom=13, Color=black, TagToUse=maxspeed, TextMode=WayCenter, FontName=Arial, FontStyle=bold, FontSize=12:5;17:14, OutlineColor=white, OutlineWidth=20%) | |||
.MaxSpeed130 | maxspeed=130 | Polyline (MinZoom=4, Color=#00BFFF, Width=4:0;11:7;17:10) | 130 | ||
.MaxSpeed120 | maxspeed=120 | Polyline (MinZoom=4, Color=#00FFFF, Width=4:0;11:7;17:10) | 120 | ||
.MaxSpeed110 | maxspeed=110 | Polyline (MinZoom=4, Color=#87CEEB, Width=4:0;11:7;17:10) | 110 | ||
.MaxSpeed100 | maxspeed=100 | Polyline (MinZoom=4, Color=#66CDAA, Width=4:0;11:7;17:10) | 100 | ||
.MaxSpeed90 | maxspeed=90 | Polyline (MinZoom=5, Color=#3CB371, Width=4:0;11:7;17:10) | 90 | ||
.MaxSpeed80 | maxspeed=80 | Polyline (MinZoom=5, Color=#32CD32, Width=6:0;11:7;17:10) | 80 | ||
.MaxSpeed70 | maxspeed=70 | Polyline (MinZoom=6, Color=#ADFF2F, Width=6:0;11:7;17:10) | 70 | ||
.MaxSpeed60 | maxspeed=60 | Polyline (MinZoom=6, Color=#FFDF00, Width=6:0;11:7;17:10) | 60 | ||
.MaxSpeed50 | maxspeed=50 | Polyline (MinZoom=6, Color=#FF9F00, Width=6:0;11:7;17:10) | 50 | ||
.MaxSpeed40 | maxspeed=40 | Polyline (MinZoom=6, Color=#FF6000, Width=6:0;11:7;17:10) | 40 | ||
.MaxSpeed30 | maxspeed=30 | Polyline (MinZoom=8, Color=#FF2000, Width=8:0;11:5;17:8) | 30 | ||
.MaxSpeed25 | maxspeed=25 | Polyline (MinZoom=8, Color=#C00000, Width=8:0;11:5;17:8) | 25 | ||
.MaxSpeed20 | maxspeed=20 | Polyline (MinZoom=8, Color=#800000, Width=8:0;11:5;17:8) | 20 | ||
.MaxSpeed15 | maxspeed=15 | Polyline (MinZoom=8, Color=#C05000, Width=8:0;11:5;17:8) | 15 | ||
.MaxSpeed10 | maxspeed=10 | Polyline (MinZoom=8, Color=#D56A00, Width=8:0;11:5;17:8) | 10 | ||
.MaxSpeed7 | maxspeed=7 | Polyline (MinZoom=8, Color=#AA5500, Width=8:0;11:5;17:8) | 7 | ||
.MaxSpeedwalk | maxspeed=walk | Polyline (MinZoom=8, Color=#AA5500, Width=8:0;11:5;17:8) | walk | ||
.MaxSpeed6 | maxspeed=6 | Polyline (MinZoom=8, Color=#905000, Width=8:0;11:5;17:8) | 6 | ||
.MaxSpeed5 | maxspeed=5 | Polyline (MinZoom=8, Color=#804000, Width=8:0;11:5;17:8) | 5 | ||
.MaxSpeedno | maxspeed=no | Polyline (MinZoom=4, Color=#0040FF, Width=4:0;11:7;17:10) | no | ||
.MaxSpeednone | maxspeed=none | Polyline (MinZoom=4, Color=#0040FF, Width=4:0;11:7;17:10) | none | ||
.MaxSpeedunlimited | maxspeed=unlimited | Polyline (MinZoom=4, Color=#0040FF, Width=4:0;11:7;17:10) | unlimited | ||
.MaxSpeedvariable | maxspeed=variable | Polyline (MinZoom=5, Color=#CC00FF, Width=6:0;11:7;17:10) | variable | ||
.MaxSpeedsignals | maxspeed=signals | Polyline (MinZoom=5, Color=#CC00FF, Width=6:0;11:7;17:10) | signals | ||
.MaxSpeed_ | maxspeed=* | Polyline (MinZoom=6, Color=#A0A0A0, Width=6:0;11:5;17:10) | ??? |
Land Areas
Rule Name | Targets | Selector | Template | Options | Comment |
---|---|---|---|---|---|
Residential | landuse=residential | Polygon (Color=#DCDCDC) | |||
Common | leisure=playground | Polygon (Color=#CFECA8) |