Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Changelog
Browse Source
View Tickets
New Ticket
Roadmap
Builds
Sonar
Search
Context Navigation
+0
Start Page
Index
History
Editing Styles/MTB
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
Style for easy editing mtb:scale. See [https://wiki.openstreetmap.org/wiki/Key:mtb:scale] for details. As background Opencyclemap is recommended. Style definition is similar to [http://www.openandromaps.org] {{{ #!style type="mapcss" 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_2013-11-24"; 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
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.