| Version 2 (modified by , 12 years ago) ( diff ) |
|---|
Style for easy editing mtb:scale. See https://wiki.openstreetmap.org/wiki/Key:mtb:scale for details.
Style definition is similar to http://www.openandromaps.org
meta { title: "MTB"; description: "Standalone style to visualize mtb:scale of objects, fade everything else. Please turn off JOSM internal style to use it."; version: "0.1_24.11.2013"; author: "hwoehrle"; link: "http://josm.openstreetmap.de/wiki/Styles/MTB"; min-josm-version: "5198"; } meta[lang=de] { description: "Eigenständiger Stil, zur Darstellung von Mountainbike-relevanten Angaben wie mtb:scale etc. - bitte JOSM-Stil deaktivieren."; } /* basic geometry */ canvas { background-color: #606060; } node { symbol-shape: circle; symbol-fill-color: darkgrey; symbol-stroke-color: lightgreen; } node|z-15 { symbol-size: 1; } node|z16 { symbol-size: 5; } node|z17 { symbol-size: 7; symbol-stroke-width: 2; } node|z18- { symbol-size: 10; symbol-stroke-width: 3; } node:connection { symbol-fill-color: yellow; } /* highway=* tag styles */ way[highway=~/cycleway|track|path/] { color: #684718; width: 3; } /* MTB INFOS =* tag styles */ way[mtb:scale=1] { color: green; } way[mtb:scale=2] { color: blue; } way[mtb:scale=3] { color: red; } way[mtb:scale=4] { color: black; } way[mtb:scale=5] { color: red; dashes: list(7,7); dashes-background-color: black; } way[mtb:scale=6] { color: magenta; dashes: list(7,7); dashes-background-color: black; } way|z15-[mtb:scale:uphill=1] { casing-color: black; casing-width: 5; casing-dashes: 1.4,15; } way|z15-[mtb:scale:uphill=2] { casing-color: black; casing-width: 5; casing-dashes: 1.4,3,1.4,15; } way|z15-[mtb:scale:uphill=3] { casing-color: black; casing-width: 6; casing-dashes: 1.4,3,1.4,3,1.4,17; } way|z15-[mtb:scale:uphill=4] { casing-color: black; casing-width: 5; casing-dashes: 1.4,3,1.4,3,1.4,3,1.4,18; } way|z15-[mtb:scale:uphill=5] { casing-color: black; casing-width: 5; casing-dashes: 1.4,3,1.4,3,1.4,3,1.4,3,1.4,20; } /* add a background glow for ways taking part in a bicycle route relation - similar to what is done in potlatch2.mapcss */ relation[type=route][route=bicycle][network=ncn] > way::relation_underlay { z-index: -200; width: 15; color: red; opacity: 0.08; linecap: none; } relation[type=route][route=bicycle][network=rcn] > way::relation_underlay { z-index: -200; width: 15; color: cyan; opacity: 0.08; linecap: none; } relation[type=route][route=bicycle][network=lcn] > way::relation_underlay { z-index: -200; width: 15; color: blue; opacity: 0.08; linecap: none; }
Note:
See TracWiki
for help on using the wiki.


