wiki:Styles/JP-Desaster

Try to help people tagging current Japan desaster.
This needs a patch #6122 for text rendering, but also works with unpatched josm.

meta 
{
    title: "Japan Impassable Ways";
    description: "Dash out ways tagged with barriers, visualize practicability=*";
    version: "1.5_2011-03-22";
    author: "cmuelle8";
    
    watch-modified: true;
    link: "http://josm.openstreetmap.de/wiki/Styles/JP-Desaster"; 
}

node[barrier=yes]
{
    text: "障害物";
}

way[JOSM_search("practicability")]
{
    font-size: 12;
    text-offset: 10;
}

way[JOSM_search("practicability|barrier=yes|*=flood")],
way[JOSM_search("*=impassable")],
way[impassable=yes],
way[practicability=no],
node[barrier?] < way
{
    color: #FF8080;
    dashes: list(2,7);
    casing-width: +3;
    casing-color: #FF2020;
    casing-dashes: eval(prop(dashes));
    text: "通行不可";
    z-index: 1.0;
}

way[practicability:foot=yes],
way[practicability:foot=only],
way[practicability:motor_vehicle=no]
{
    casing-color: #20FF20;
    text: "FOOT ONLY";
}

way[practicability:bicycle=yes],
way[practicability:bicycle=only],
way[practicability:motorbike=yes],
way[practicability:motorbike=only]
{
    casing-color: #20FFFF;
    text: "BIKE or MOTORBIKE";
}

way["practicability:4wd"=yes],
way["practicability:4wd"=only],
way[practicability:motorcar=yes],
way[practicability:motorcar=only],
way[practicability:motor_vehicle=yes],
way[practicability:motor_vehicle=only]
{
    color: black;
    dashes: none;
    casing-color: #EEEEEE;
    casing-dashes: list(4,5);
    text: "通行可 4WD < 3.5T";
}

way[practicability:goods=yes],
way[practicability:goods=only]
{
    color: black;
    dashes: none;
    casing-color: #999999;
    casing-dashes: list(8,1);
    text: "通行可 GOODS < 10T";
}

way[practicability:hgv=yes],
way[practicability:hgv=only]
{
    color: black;
    dashes: none;
    casing-color: #B0FFFF;
    casing-dashes: none;
    text: "通行可 HGV < 20T";
}

way[practicability:lory=yes],
way[practicability:lory=only]
{
    width: 2;
    color: black;
    dashes: none;
    casing-width: +5;
    casing-color: #FFFFFF;
    casing-dashes: none;
    text: "通行可 LORY > 20T";
}

way
{
    text-color: eval(prop(casing-color));
}

Styles_JP-Desaster-style.mapcss, Styles_JP-Desaster.zip

Last modified 7 years ago Last modified on 2011-03-22T09:58:49+01:00