wiki:Styles/Schools
meta 
{
    title: "Schools";
    description: "Highlight important information for importing schools and validation";
    version: "1.4_2019-08-15";
    author: "Polyglot";
    link: "https://josm.openstreetmap.de/wiki/Styles/SchoolsImport";
    min-josm-version: "5924";
}

node|z12-[amenity=~/school|kindergarten|university/]::name,
area|z12-[amenity=~/school|kindergarten|university/]::name
 {text-color: purple;
  font-size: 24;
  text: tag(name);
  text-halo-radius: 2;
  text-offset-y: 20;}

node|z12-[amenity=~/school|kindergarten|university/]::wikidata,
area|z12-[amenity=~/school|kindergarten|university/]::wikidata
 {text-color: blue;
  font-size: 18;
  text: tag(wikidata);
  text-halo-radius: 2;
  text-offset-y: 50;}

node|z12-[amenity=~/school|kindergarten|university/]::wikipedia,
area|z12-[amenity=~/school|kindergarten|university/]::wikipedia
 {text-color: blue;
  font-size: 18;
  text: tag(wikipedia);
  text-halo-radius: 2;
  text-offset-y: 70;}

node|z12-[amenity=~/school|kindergarten|university/]::note_code,
area|z12-[amenity=~/school|kindergarten|university/]::note_code
 {text-color: cyan;
  font-size: 20;
  text: concat(tag("note:code"));
  text-halo-radius: 2;
  text-offset-x: -5;
  text-offset-y: -40;
  z-index:1.0;}

node|z14-[amenity=~/school|kindergarten|university/]::note_remarks,
area|z14-[amenity=~/school|kindergarten|university/]::note_remarks
 {text-color: black;
  font-size: 19;
  text: tag("note:remarks");
  text-halo-radius: -5;
  text-offset-y: -80;
  z-index:4.0;}

node|z12-[amenity=~/school|kindergarten|university/]::fixme,
area|z12-[amenity=~/school|kindergarten|university/]::fixme
 {text-color: pink;
  font-size: 30;
  text:  tag("fixme");
  text-halo-radius: 2;
  text-offset-x: -5;
  text-offset-y: -20;
  z-index:2.0;}

node|z15-[amenity=~/school|kindergarten|university/]::district,
area|z15-[amenity=~/school|kindergarten|university/]::district
  {text-color: red;
  font-size: 12;
  text: tag("addr:district");
  text-halo-radius: 2;
  text-offset-x: -100;
  text-offset-y: 100;
  z-index:3.0;}

node|z15-[amenity=~/school|kindergarten|university/]::county,
area|z15-[amenity=~/school|kindergarten|university/]::county
  {text-color: red;
  font-size: 12;
  text: tag("addr:county");
  text-halo-radius: 2;
  text-offset-x: -100;
  text-offset-y: 80;
  z-index:3.0;}
  
node|z15-[amenity=~/school|kindergarten|university/]::subcounty,
area|z15-[amenity=~/school|kindergarten|university/]::subcounty
  {text-color: red;
  font-size: 12;
  text: tag("addr:subcounty");
  text-halo-radius: 2;
  text-offset-x: -100;
  text-offset-y: 60;
  z-index:3.0;}
  
node|z15-[amenity=~/school|kindergarten|university/]::city,
area|z15-[amenity=~/school|kindergarten|university/]::city
  {text-color: red;
  font-size: 12;
  text: concat(tag("addr:postcode"),"  ",tag("addr:city"));
  text-halo-radius: 2;
  text-offset-x: -100;
  text-offset-y: 40;
  z-index:3.0;}
  
node|z15-[amenity=~/school|kindergarten|university/]::parishORstreet,
area|z15-[amenity=~/school|kindergarten|university/]::parishORstreet
  {text-color: red;
  font-size: 12;
  text: concat(tag("addr:parish"),"  ",tag("addr:street"),"  ",tag("addr:housenumber"));
  text-halo-radius: 2;
  text-offset-x: -100;
  text-offset-y: 20;
  z-index:3.0;}
  
node|z15-[amenity=~/school|kindergarten|university/]::isced_level,
area|z15-[amenity=~/school|kindergarten|university/]::isced_level
  {text-color: cyan;
  font-size: 18;
  text: cond(has_tag_key("isced:level"), tag("isced:level"), "isced:level is missing");
  text-halo-radius: 2;
  text-offset-x: -200;
  text-offset-y: -20;
  z-index:3.0;}

Styles_Schools-style.mapcss, Styles_Schools.zip

Last modified 5 years ago Last modified on 2019-08-15T22:20:29+02:00
Note: See TracWiki for help on using the wiki.