Changes between Version 4 and Version 5 of Styles/Surface


Ignore:
Timestamp:
2011-03-16T07:35:24+01:00 (15 years ago)
Author:
cmuelle8
Comment:

prettify the damn thing ..

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Surface

    v4 v5  
    11This style visualizes the surface=* and smoothness tags on highways. Currently it does the following:
    22
    3  - show highways that neither have surface=* or smoothness=* as solid black
     3 - show highways that neither have surface=* or smoothness=* as dotted black
    44
    55 - with the smoothness tag render a
    6    - blue thin line for smoothness=excellent
    7    - move from green (=good) to red (=impassable) for the rest of smoothness values, at the same time thicken the way and use dashed stiles as smoothness values
    8 
    9  - with the surface tag render a
    10    - soft white halo  (but only for values paved|asphalt|concrete|concrete_pavers)
    11    - for the rest render the value with text  (light brown for dirt, ground, mud,  light green for grass,  etc..)
    12 
    13   - do not render text for the most common values  (excellent, good, asphalt, paved) as they are easily identifyable by color code  and  would distract from the problem zones
     6   - white solid for smoothness=excellent
     7   - then move from green (=good) to red (=impassable) for the rest of smoothness values and use dashed stiles as smoothness values
     8   - ways that have smoothness but lack surface are of width 1.5
     9
     10 - with the surface tag render
     11   - ways with a width of 3.0
     12   - a noticable black casing for values paved|asphalt|concrete|concrete_pavers
     13   - for the rest render the value with text and text-color (light brown for dirt, ground, mud,  light green for grass,  etc..)
     14   - ways that have surface but not smoothness are rendered solid gray at width 3.0
     15
     16  - do not render text for the most common values  (excellent, good, asphalt, paved) as they are easily identifyable by color code  and  would distract from the "problem zones"
    1417
    1518{{{
     
    2629}
    2730
     31
    2832meta[lang=de]
    2933{
     
    98102way[highway][!area]
    99103{
    100     color: #202020;
    101104    opacity: 1.0;
    102105    z-index: 1.0;
     
    105108
    106109
     110way[highway][!surface][!smoothness]
     111{
     112    color: #202020;
     113    dashes: list(2,1);
     114}
     115
     116way[highway][!surface][smoothness]
     117{
     118    color: #202020;
     119    width: 1.5;
     120}
     121
     122way[highway][surface]
     123{
     124    color: #909090;
     125    width: 3;
     126}
     127
    107128way[highway][smoothness=impassable]
    108129{
    109     width: 4;
    110130    color: eval(rgb((7*0.142*(1-red(prop(color)))) + red(prop(color)), (1*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color))));
    111     dashes: list(3,5,2,2,5,3);
     131    dashes: list(2,10,5,10);
    112132}
    113133
    114134way[highway][smoothness=very_horrible]
    115135{
    116     width: 4;
    117136    color: eval(rgb((6*0.142*(1-red(prop(color)))) + red(prop(color)), (2*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color))));
    118     dashes: list(3,5,2,2,5,3);
     137    dashes: list(2,10,5,3);
    119138}
    120139
    121140way[highway][smoothness=horrible]
    122141{
    123     width: 4;
    124142    color: eval(rgb((5*0.142*(1-red(prop(color)))) + red(prop(color)), (3*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color))));
    125     dashes: list(3,5,2,2,5,3);
     143    dashes: list(3,5,2,2);
    126144}
    127145
    128146way[highway][smoothness=very_bad]
    129147{
    130     width: 3;
    131148    color: eval(rgb((4*0.142*(1-red(prop(color)))) + red(prop(color)), (4*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color))));
    132     dashes: list(3,5,2,2);
     149    dashes: list(4,4,2,2);
    133150}
    134151
    135152way[highway][smoothness=bad]
    136153{
    137     width: 3;
    138154    color: eval(rgb((3*0.142*(1-red(prop(color)))) + red(prop(color)), (5*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color))));
    139     dashes: list(4,4,2,2);
     155    dashes: list(7,5);
    140156}
    141157
    142158way[highway][smoothness=intermediate]
    143159{
    144     width: 2;
    145160    color: eval(rgb((2*0.142*(1-red(prop(color)))) + red(prop(color)), (6*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color))));
    146     dashes: list(7,5);
     161    dashes: list(10,2);
    147162}
    148163
    149164way[highway][smoothness=good]
    150165{
    151     color: eval(rgb((1*0.142*(1-red(prop(color)))) + red(prop(color)), (7*0.142*(1-green(prop(color)))) + green(prop(color)), 0.4));
    152     dashes: list(10,2);
     166    color: eval(rgb((1*0.142*(1-red(prop(color)))) + red(prop(color)), (7*0.142*(1-green(prop(color)))) + green(prop(color)), blue(prop(color))));
    153167}
    154168
    155169way[highway][smoothness=excellent]
    156170{
    157     color: eval(rgb(red(prop(color)), green(prop(color)), 1.0));
     171    color: white;
    158172}
    159173
     
    165179    print-text: true;
    166180    text-color: #B0E0EE;
    167     text-offset: 4;
    168 }
    169 
    170 way[highway][surface=unpaved],
    171 way[highway][surface=dirt],
    172 way[highway][surface=ground],
    173 way[highway][surface=mud]
     181    text-offset: 5;
     182}
     183
     184way[highway][surface=grass]
     185{
     186    text-color: #B0FFB0;
     187}
     188
     189way[highway][surface=~/unpaved.*|dirt.*|earth.*|ground.*|mud.*/]
    174190{
    175191    text-color: #FFB0B0;
    176192}
    177193
    178 way[highway][surface=grass]
    179 {
    180     text-color: #B0FFB0;
    181 }
    182 
    183 way[highway][surface=gravel],
    184 way[highway][surface=fine_gravel],
    185 way[highway][surface=pebblestone]
     194way[highway][surface=~/.*gravel.*|pebble.*/]
    186195{
    187196    text-color: #FFFFB0;
    188197}
    189198
    190 way[highway][surface=paved],
    191 way[highway][surface=asphalt],
    192 way[highway][surface=concrete],
    193 way[highway][surface=concrete_pavers]
     199way[highway][surface=~/paved.*|asphalt.*|concrete.*|cobble.*/][smoothness=~/excellent|good|intermediate|bad/]
    194200{
    195201    print-text: false;
    196     casing-width: +2;
    197     casing-color: #7777AA;
     202    casing-width: +3;
     203    casing-color: black;
    198204    casing-dashes: eval(prop(dashes));
    199205}
     
    224230
    225231
     232
    226233}}}
    227234