Mountain terrain style
This style
- paints ways natural=ridge, natural=arete, natural=ridge + arete=yes, natural=ridge + cliff=yes
- add icons for nodes natural=peak, natural=rock, natural=volcano, mountain_pass=yes, ele=*
- draw legible labels for elements above
The style itself
meta { title: "Mountains"; description: "Indication mountain terrain tags"; author: "lzhl"; version: "0.6_2020-10-05"; } /* hide nodes */ node|z1-13 {symbol-shape: square; symbol-fill-opacity: 0; symbol-size: 1; z-index: -1;} node|z14-15 {symbol-shape: square; symbol-stroke-color: #FFFF00; symbol-size: 4; z-index: 1;} node|z16- {symbol-shape: square; symbol-stroke-color: #FFFF00; symbol-size: 5; z-index: 1;} /* not fill national parks */ area[boundary=national_park], relation[boundary=national_park], way[leisure=nature_reserve], relation[leisure=nature_reserve] > way {opacity: 0.5; color: #CDCDC1; width: 1; fill-opacity: 0;} /* lines color and width */ way[natural=ridge] {color: #773900; width: 4;} way[natural=cliff] {color: #004400; width: 3;} way[natural=arete] {color: #441144; width: 3;} way[natural=ridge][cliff=yes] {color: #775500; width: 4;} way[natural=ridge][arete=yes] {color: #773939; width: 4;} way[natural=glacier], relation[natural=glacier] {color: #9f9fff; fill-color: #ddddff; width: 2;} /* icons */ node[natural=peak] {icon-image: peak.png;} node[natural=rock] {icon-image: rock.png;} node[natural=volcano] {icon-image: volcano.png;} node[mountain_pass=yes] {icon-image: pass.png;} node|z1-12[ele] {symbol-shape: circle; symbol-stroke-color: #000000; symbol-size: 5; z-index: 1;} node|z13-[ele] {symbol-shape: circle; symbol-stroke-color: #000000; symbol-size: 7; z-index: 1;} /* labels */ node|z1-11[natural=peak], node|z1-11[mountain_pass=yes] {text-opacity: 0} node|z12[natural=peak], node|z12[mountain_pass=yes] {font-size: 10; text-color: #000000; text-halo-color: #ffffff; text-halo-radius: 1.8; text: ele;} node|z12[natural=peak][name], node|z12[mountain_pass=yes][name] {font-size: 10; text-color: #000000; text-halo-color: #ffffff; text: name} node|z13-[natural=peak], node|z13-[mountain_pass=yes], node|z13-[natural=rock] {font-size: 12; font-weight: bold; text-color: #000000; text-halo-color: #ffffff; text-halo-radius: 2; text: ele;} node|z13-[natural=peak][name], node|z13-[mountain_pass=yes][name], node|z13-[natural=rock][name] {font-size: 12; font-weight: bold; text-color: #000000; text-halo-color: #ffffff; text: name;} node|z13-[!natural][!mountain_pass][ele] {font-size: 12; font-weight: bold; text-color: #000000; text-halo-color: #ffffff; text-halo-radius: 2; text: ele;} way|z1-11[natural=ridge] {font-size: 11; font-weight: bold; text-color: #773900; text-halo-color: #ffffff; text-halo-radius: 2; text: name;} way|z12-[natural=ridge] {font-size: 11; font-weight: bold; text-color: #773900; text-halo-color: #ffffff; text-halo-radius: 1.8; text: name;}
Last modified
4 years ago
Last modified on 2020-10-05T18:34:06+02:00
Attachments (8)
-
kent.png
(386.6 KB
) - added by 12 years ago.
(NOZIP)
- pass.png (204 bytes ) - added by 12 years ago.
- pass.2.png (182 bytes ) - added by 11 years ago.
- peak.2.png (237 bytes ) - added by 11 years ago.
- rock.png (260 bytes ) - added by 11 years ago.
- volcano.2.png (229 bytes ) - added by 11 years ago.
- peak.png (237 bytes ) - added by 11 years ago.
- volcano.png (229 bytes ) - added by 11 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.