User:Nkbre/Kosm2

From OpenStreetMap Wiki
Jump to: navigation, search

Introduction

This page contains a set of Kosmos rendering rules to highlight the maxspeed values.

Only part of User:Nkbre/Kosm1

  1. no landuses, water, places ...
  2. only overlay showing maxspeed and living_street
  3. colorize maxspeed vales from green (lowest) to red (highest)
  4. thin grey lines for all highways with no maxspeed value
  5. show speed values on zoom 14 and higher

Options

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

Highways

Rule Name Targets Selector Template Options Comment
Living Street Area Way highway=living_street Polyline (Color=#0000ff, BorderColor=#FF0000, Width=3)
Highway Area Way highway=* Text (MinZoom=14, Color=black, TagToUse=maxspeed, FontName=Arial, FontStyle=regular, FontSize=11:6;17:9)
. 10 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 11 Polyline (Color=#006600, BorderColor=#006600, Width=3)
. 20 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 21 Polyline (Color=#00CC00, BorderColor=#00CC00, Width=3)
. 30 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 31 Polyline (Color=#00FF00, BorderColor=#00FF00, Width=3)
. 40 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 41 Polyline (Color=#CCFF66, BorderColor=#CCFF66, Width=3)
. 50 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 51 Polyline (Color=#FFFF33, BorderColor=#FFFF33, Width=3)
. 60 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 61 Polyline (Color=#FFCC66, BorderColor=#FFCC66, Width=3)
. 70 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 71 Polyline (Color=#FFCC00, BorderColor=#FFCC00, Width=3)
. 80 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 81 Polyline (Color=#FF9999, BorderColor=#FF9999, Width=3)
. 100 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 101 Polyline (Color=#FF9933, BorderColor=#FF9933, Width=3)
. 120 IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") < 121 Polyline (Color=#FF6633, BorderColor=#FF6633, Width=3)
. xxx IsTaggedWith(e,"maxspeed") AND ValueNum(e,"maxspeed") > 121 Polyline (Color=#FF0000, BorderColor=#FF0000, Width=3)