Changes between Version 16 and Version 17 of Styles/Surface


Ignore:
Timestamp:
2011-03-17T02:55:28+01:00 (15 years ago)
Author:
cmuelle8
Comment:

implement low zoom stuff..

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Surface

    v16 v17  
    11This style visualizes the surface and smoothness tags on highways.  Currently it does the following:
     2
     3 - Up to zoom level 10 you may use this as a data detector (it visualizes smoothness/surface coverage).
     4   - gray -> surface is present (dropped in 11 and above)
     5   - green -> smoothness is present (dropped in 11 and above)
     6   - white -> both surface and smoothness are present (also shown in zoom level 11, nice transition to the rest)
    27
    38 - The line color primarily codes the smoothness tag, however some line coloring is done on ways according to surface, if smoothness is untagged.
     
    102107    fill-color: magenta;
    103108    fill-opacity: 0.02;
    104     z-index: -0.8;
     109    z-index: 0.2;
    105110}
    106111
     
    118123
    119124
    120 way[highway][!area]
     125way|z11-[highway][!area]
     126{
     127    color: #909090;
     128    opacity: 1.0;
     129    z-index: 0.9;
     130}
     131
     132way|z-10[highway][surface]
    121133{
    122134    color: #909090;
     
    125137}
    126138
    127 
    128 
    129 
    130 way[highway][smoothness]
     139way|z-10[highway][smoothness]
     140{
     141    color: #90F090;
     142    opacity: 1.0;
     143    z-index: 1.0;
     144}
     145
     146way|z-11[highway][smoothness][surface]
     147{
     148    color: white;
     149    opacity: 1.0;
     150    z-index: 1.0;
     151}
     152
     153
     154
     155
     156way|z14-[highway][smoothness][surface]
     157{
     158    color: #909090;
     159}
     160
     161way|z12-[highway][smoothness]
    131162{
    132163    width: 1.5;
     
    134165}
    135166
    136 way|z14-[highway][smoothness][surface]
    137 {
    138     color: #909090;
    139 }
    140 
    141 way[highway][smoothness=impassable]
     167way|z12-[highway][smoothness=impassable]
    142168{
    143169    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))));
     
    145171}
    146172
    147 way[highway][smoothness=very_horrible]
     173way|z12-[highway][smoothness=very_horrible]
    148174{
    149175    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))));
     
    151177}
    152178
    153 way[highway][smoothness=horrible]
     179way|z12-[highway][smoothness=horrible]
    154180{
    155181    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))));
     
    157183}
    158184
    159 way[highway][smoothness=very_bad]
     185way|z12-[highway][smoothness=very_bad]
    160186{
    161187    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))));
     
    163189}
    164190
    165 way[highway][smoothness=bad]
     191way|z12-[highway][smoothness=bad]
    166192{
    167193    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))));
     
    169195}
    170196
    171 way[highway][smoothness=intermediate]
     197way|z12-[highway][smoothness=intermediate]
    172198{
    173199    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))));
     
    175201}
    176202
    177 way[highway][smoothness=good]
     203way|z12-[highway][smoothness=good]
    178204{
    179205    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))));
    180206}
    181207
    182 way[highway][smoothness=excellent]
     208way|z12-[highway][smoothness=excellent]
    183209{
    184210    color: white;