Changes between Version 3 and Version 4 of Styles/MTB


Ignore:
Timestamp:
2013-11-24T15:22:55+01:00 (12 years ago)
Author:
hwoehrle
Comment:

changes in code

Legend:

Unmodified
Added
Removed
Modified
  • Styles/MTB

    v3 v4  
    66{{{
    77#!style type="mapcss"
    8 
    98meta
    109{
    1110    title: "MTB";
    12     description: "Standalone style to visualize mtb:scale of objects, fade everything else. Please turn off JOSM internal style to use it.";
    13     version: "0.1_2013-11-24";
    14     author: "hwoehrle";
    15     link: "http://josm.openstreetmap.de/wiki/Styles/MTB";
    16     min-josm-version: "5198";
     11    description: "visualize mtb:scale of objects";
     12    version: "0.11_2013-11-25";
     13    author: "Heiko Woehrle";
    1714}
    1815
    1916meta[lang=de]
    2017{
    21     description: "Eigenständiger Stil, zur Darstellung von Mountainbike-relevanten Angaben wie mtb:scale etc. - bitte JOSM-Stil deaktivieren.";
     18    title: "MTB";
     19    description: "Darstellung von Mountainbike-relevanten Angaben wie mtb:scale etc. - bitte JOSM-Stil deaktivieren.";
    2220}
    2321
     
    135133
    136134
     135/* Display of minor roads that are usally useable by bike */
     136
     137way[highway=~/unclassified|residential|tertiary|service/]
     138{
     139        color: white;
     140        opacity: 0.5:
     141        casing-color: #684718;
     142        casing-width: 2;
     143}
     144  way|z-14[highway=~/unclassified|residential|tertiary|service/]
     145    {
     146        width: 4;
     147    }
     148  way|z15-16[highway=~/unclassified|residential|tertiary|service/]
     149    {
     150        width: 6;
     151    }
     152  way|z17-[highway=~/unclassified|residential|tertiary|service/]
     153    {
     154        width: 10;
     155    }
     156
     157
     158/* Display of regional and big roads */
     159
     160way[highway=~/motorway|trunk|primary|secondary/]
     161{
     162        color: #E6DEBE;
     163        opacity: 0.5:
     164        casing-color: #684718;
     165        casing-width: 2;
     166}
     167  way|z-14[highway=~/motorway|trunk|primary|secondary/]
     168    {
     169        width: 6;
     170    }
     171  way|z15-16[highway=~/motorway|trunk|primary|secondary/]
     172    {
     173        width: 8;
     174    }
     175  way|z17-[highway=~/motorway|trunk|primary|secondary/]
     176    {
     177        width: 12;
     178    }
     179
     180
     181
     182
     183way[waterway]
     184{
     185        color: #6CCEE4;
     186        width: 3;
     187}
     188
    137189/* add a background glow for ways taking part in a bicycle route relation - similar to what is done in potlatch2.mapcss */
    138190relation[type=route][route=bicycle][network=ncn] > way::relation_underlay { z-index: -200; width: 15; color: red; opacity: 0.08; linecap: none; }
    139191relation[type=route][route=bicycle][network=rcn] > way::relation_underlay { z-index: -200; width: 15; color: cyan; opacity: 0.08; linecap: none; }
    140192relation[type=route][route=bicycle][network=lcn] > way::relation_underlay { z-index: -200; width: 15; color: blue; opacity: 0.08; linecap: none; }
    141 
    142 
    143 
    144 
    145193}}}