Style for easy editing mtb:scale. See mtb:scale on OSM-wiki for details. As background Opencyclemap is recommended.
Style definition is similar to http://www.openandromaps.org
meta { title: "MTB"; description: "visualize mtb:scale of objects"; version: 10_2022-11-08; author: "Heiko Woehrle"; link: "https://josm.openstreetmap.de/wiki/Styles/MTB"; min-josm-version: 7110; } meta[lang=de] { title: "MTB"; description: "Darstellung von Mountainbike-relevanten Angaben wie mtb:scale etc. - bitte JOSM-Stil deaktivieren."; } /* basic geometry */ canvas { fill-color: #606060; } node { symbol-shape: circle; symbol-fill-color: darkgrey; symbol-stroke-color: lightgreen; } node|z-15 { symbol-size: 0.1; } node|z16 { symbol-size: 2; } node|z17 { symbol-size: 3; symbol-stroke-width: 1; } node|z18- { symbol-size: 4; symbol-stroke-width: 1; } 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: #68D618; dashes: list(7,7); dashes-background-color: #684718; } way[mtb:scale=1] { color: #68D618; } 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; } /* Display of minor roads that are usally useable by bike */ way[highway=~/unclassified|residential|tertiary|service/] { color: white; opacity: 0.5; casing-color: #684718; casing-width: 2; } way|z-14[highway=~/unclassified|residential|tertiary|service/] { width: 4; } way|z15-16[highway=~/unclassified|residential|tertiary|service/] { width: 6; } way|z17-[highway=~/unclassified|residential|tertiary|service/] { width: 10; } /* Display of regional and big roads */ way[highway=~/motorway|trunk|primary|secondary/] { color: #E6DEBE; opacity: 0.5; casing-color: #684718; casing-width: 2; } way|z-14[highway=~/motorway|trunk|primary|secondary/] { width: 6; } way|z15-16[highway=~/motorway|trunk|primary|secondary/] { width: 8; } way|z17-[highway=~/motorway|trunk|primary|secondary/] { width: 12; } way[waterway] { color: #6CCEE4; width: 3; } /* 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|mtb/][network=ncn] > way::relation_underlay { z-index: -200; width: 15; color: red; opacity: 0.15; linecap: none; } relation[type=route][route=~/bicycle|mtb/][network=rcn] > way::relation_underlay { z-index: -200; width: 15; color: cyan; opacity: 0.15; linecap: none; } relation[type=route][route=~/bicycle|mtb/][network=lcn] > way::relation_underlay { z-index: -200; width: 15; color: blue; opacity: 0.15; linecap: none; }
Last modified
2 years ago
Last modified on 2022-11-08T23:08:43+01:00
Note:
See TracWiki
for help on using the wiki.