Changes between Initial Version and Version 1 of Styles/MTB


Ignore:
Timestamp:
2013-11-23T16:27:28+01:00 (12 years ago)
Author:
hwoehrle
Comment:

First version of new style definition

Legend:

Unmodified
Added
Removed
Modified
  • Styles/MTB

    v1 v1  
     1Style for easy editing mtb:scale. See [https://wiki.openstreetmap.org/wiki/Key:mtb:scale] for details.
     2
     3Style definition is similar to [http://www.openandromaps.org]
     4
     5
     6{{{
     7#!style type="mapcss"
     8
     9meta
     10{
     11    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_24.11.2013";
     14    author: "hwoehrle";
     15    link: "http://josm.openstreetmap.de/wiki/Styles/MTB";
     16    min-josm-version: "5198";
     17}
     18
     19meta[lang=de]
     20{
     21    description: "Eigenständiger Stil, der Radwege und -spuren, sowie bicycle=official|designated|yes|no hervorhebt - bitte JOSM-Stil deaktivieren.";
     22}
     23
     24
     25
     26/* basic geometry */
     27canvas
     28{
     29    background-color: #606060;
     30}
     31
     32node
     33{
     34    symbol-shape: circle;
     35    symbol-fill-color: darkgrey;
     36    symbol-stroke-color: lightgreen;
     37}
     38node|z-15
     39{
     40    symbol-size: 1;
     41}
     42node|z16
     43{
     44    symbol-size: 5;
     45}
     46node|z17
     47{
     48    symbol-size: 7;
     49    symbol-stroke-width: 2;
     50}
     51node|z18-
     52{
     53    symbol-size: 10;
     54    symbol-stroke-width: 3;
     55}
     56node:connection
     57{
     58    symbol-fill-color: yellow;   
     59}
     60
     61
     62
     63/* highway=* tag styles */
     64way[highway=~/cycleway|track|path/]
     65{
     66        color: #684718;
     67        width: 3;
     68}
     69
     70
     71
     72/* MTB INFOS =* tag styles */
     73way[mtb:scale=1]
     74{
     75        color: green;
     76}
     77way[mtb:scale=2]
     78{
     79        color: blue;
     80}
     81way[mtb:scale=3]
     82{
     83        color: red;
     84}
     85way[mtb:scale=4]
     86{
     87        color: black;
     88}
     89way[mtb:scale=5]
     90{
     91        color: red;
     92        dashes: list(7,7);
     93        dashes-background-color: black;
     94}
     95way[mtb:scale=6]
     96{
     97        color: magenta;
     98        dashes: list(7,7);
     99        dashes-background-color: black;
     100}
     101
     102
     103
     104way|z15-[mtb:scale:uphill=1]
     105{
     106        casing-color: black;
     107        casing-width: 5;
     108        casing-dashes: 1.4,15;
     109}
     110way|z15-[mtb:scale:uphill=2]
     111{
     112        casing-color: black;
     113        casing-width: 5;
     114        casing-dashes: 1.4,3,1.4,15;
     115}
     116way|z15-[mtb:scale:uphill=3]
     117{
     118        casing-color: black;
     119        casing-width: 6;
     120        casing-dashes: 1.4,3,1.4,3,1.4,17;
     121}
     122way|z15-[mtb:scale:uphill=4]
     123{
     124        casing-color: black;
     125        casing-width: 5;
     126        casing-dashes: 1.4,3,1.4,3,1.4,3,1.4,18;
     127}
     128way|z15-[mtb:scale:uphill=5]
     129{
     130        casing-color: black;
     131        casing-width: 5;
     132        casing-dashes: 1.4,3,1.4,3,1.4,3,1.4,3,1.4,20;
     133}
     134
     135
     136
     137/* add a background glow for ways taking part in a bicycle route relation - similar to what is done in potlatch2.mapcss */
     138relation[type=route][route=bicycle][network=ncn] > way::relation_underlay { z-index: -200; width: 15; color: red; opacity: 0.08; linecap: none; }
     139relation[type=route][route=bicycle][network=rcn] > way::relation_underlay { z-index: -200; width: 15; color: cyan; opacity: 0.08; linecap: none; }
     140relation[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
     145}}}