wiki:Styles/Mountains

Version 1 (modified by eugkat, 12 years ago) ( diff )

--

Mountain terrain style

This style

  • paints ways natural=ridge, natural=arete
  • add icons for nodes natural=peak, natural=volcano, mountain_pass=yes, ele=*
  • draw legible labels for elements above

(NOZIP)

The style itself

meta {
        title: "Mountains";
        description: "Indication mountain terrain tags";
        author: "lzhl";
        version: "0.6_2020-10-05";
        watch-modified: true;
}

/* 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: http://mountainclub.ru/osm/icons/peak_small.png;}
node[natural=volcano] {icon-image: http://mountainclub.ru/osm/icons/volcano_small.png;}
node[mountain_pass=yes] {icon-image: http://mountainclub.ru/osm/icons/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] {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] {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;}

Styles_Mountains-style.mapcss, Styles_Mountains.zip

Attachments (8)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.