Changes between Version 4 and Version 5 of Styles/Coloured_Postcode


Ignore:
Timestamp:
2012-12-28T07:53:37+01:00 (13 years ago)
Author:
geozeisig
Comment:

Format geändert, 2 Fehler

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Coloured_Postcode

    v4 v5  
    22#!style type="mapcss"
    33
    4 
    5  meta {
    6 
    7     title: "Coloured Postcode"; author: "geozeisig"; version: "0.[[revision]]_[[date]]"; description: "Style to ease mapping of Postcode by colouring streets and houses and nodes"; link: "http://josm.openstreetmap.de/wiki/Styles/Coloured_Postcode";
    8 
    9 }
    10 
    11 /* highlight buildings and highways */ area[building]["addr:postcode"$="1"] {
    12 
    13     color: #FFFF00; fill-color: #FFFF00; width: 3;
    14 
    15 }
    16 node["addr:postcode"$="1"]::halo {
    17 
    18     symbol-fill-color: #FFFF00; symbol-shape: circle; symbol-size: 20; z-index: -1;
    19 
    20 }
    21 way["postal_code"$="1"] {
    22 
    23     color: #FFFF00; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #FFFF00; text-halo-radius:2
    24 
    25 }
    26 
    27 area[building]["addr:postcode"$="2"] {
    28 
    29     color: #FF00FF; fill-color: #FF00FF; width: 3;
    30 
    31 }
    32 node["addr:postcode"$="2"]::halo {
    33 
    34     symbol-fill-color: #FF00FF; symbol-shape: circle; symbol-size: 20; z-index: -1;
    35 
    36 }
    37 way["postal_code"$="2"] {
    38 
    39     color: #FF00FF; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #FF00FF; text-halo-radius:2
    40 
    41 }
    42 
    43 area[building]["addr:postcode"$="3"] {
    44 
    45     color: #A45200; fill-color: #A45200; width: 3;
    46 
    47 }
    48 node["addr:postcode"$="3"]::halo {
    49 
    50     symbol-fill-color: #A45200; symbol-shape: circle; symbol-size: 20; z-index: -1;
    51 
    52 }
    53 way["postal_code"$="3"] {
    54 
    55     color: #A45200; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #A45200; text-halo-radius:2
    56 
    57 }
    58 
    59 area[building]["addr:postcode"$="4"] {
    60 
    61     fill-color: #FB9A99; width: 3;
    62 
    63 }
    64 node["addr:postcode"$="4"]::halo {
    65 
    66     color: #FB9A99; symbol-fill-color: #FB9A99; symbol-shape: circle; symbol-size: 20; z-index: -1;
    67 
    68 }
    69 way["postal_code"$="4"] {
    70 
    71     color: #FB9A99; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #FB9A99; text-halo-radius:2
    72 
    73 }
    74 
    75 area[building]["addr:postcode"$="5"] {
    76 
    77     color: #FECC34; fill-color: #FECC34; width: 3;
    78 
    79 }
    80 node["addr:postcode"$="5"]::halo {
    81 
    82     symbol-fill-color: #FECC34; symbol-shape: circle; symbol-size: 20; z-index: -1;
    83 
    84 }
    85 way["postal_code"$="5"] {
    86 
    87     color: #FECC34; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #FECC34; text-halo-radius:2
    88 
    89 }
    90 
    91 area[building]["addr:postcode"$="6"] {
    92 
    93     color: #1F78B4; fill-color: #1F78B4; width: 3;
    94 
    95 }
    96 node["addr:postcode"$="6"]::halo {
    97 
    98     symbol-fill-color: #1F78B4; symbol-shape: circle; symbol-size: 20; z-index: -1;
    99 
    100 }
    101 way["postal_code"$="6"] {
    102 
    103     color: #1F78B4; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #1F78B4; text-halo-radius:2
    104 
    105 }
    106 
    107 area[building]["addr:postcode"$="7"] {
    108 
    109     color: #6A3D9A; fill-color: #6A3D9A; width: 3;
    110 
    111 }
    112 node["addr:postcode"$="7"]::halo {
    113 
    114     symbol-fill-color: #6A3D9A; symbol-shape: circle; symbol-size: 20; z-index: -1;
    115 
    116 }
    117 way["postal_code"$="7"] {
    118 
    119     color: #6A3D9A; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #6A3D9A; text-halo-radius:2
    120 
    121 }
    122 
    123 area[building]["addr:postcode"$="8"] {
    124 
    125     color: #A6CEE3; fill-color: #A6CEE3; width: 3;
    126 
    127 }
    128 node["addr:postcode"$="8"]::halo {
    129 
    130     symbol-fill-color: #A6CEE3; symbol-shape: circle; symbol-size: 20; z-index: -1;
    131 
    132 }
    133 way["postal_code"$="8"] {
    134 
    135     color: #A6CEE3; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #A6CEE3; text-halo-radius:2
    136 
    137 }
    138 
    139 area[building]["addr:postcode"$="9"] {
    140 
    141     fill-color: #3ED2A6; width: 3;
    142 
    143 }
    144 node["addr:postcode"$="9"]::halo {
    145 
    146     color: #3ED2A6; symbol-fill-color: #3ED2A6; symbol-shape: circle; symbol-size: 20; z-index: -1;
    147 
    148 }
    149 way["postal_code"$="9"] {
    150 
    151     color: #3ED2A6; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #3ED2A6; text-halo-radius:2
    152 
    153 }
    154 
    155 area[building]["addr:postcode"$="0"] {
    156 
    157     color: #0FF05E; fill-color: #0FF05E; width: 3;
    158 
    159 }
    160 node["addr:postcode"$="0"]::halo {
    161 
    162     symbol-fill-color: #0FF05E; symbol-shape: circle; symbol-size: 20; z-index: -1;
    163 
    164 }
    165 way["postal_code"$="0"] {
    166 
    167     color: #0FF05E; width: 3; font-size: 12; text-color: #000000; text-position: line; text: "postal_code"; text-offset: 0; text-halo-color: #0FF05E; text-halo-radius:2
    168 
    169 }
    170 
    171 /* all marked housenumber in black color */
    172         node[addr:postcode?] {
    173 
    174     font-size: 10; text-color: black;
    175 
    176 }
    177 area[building]["addr:postcode"] {
    178 
    179     text-color: black; font-size: 10;
    180 
    181 }
    182 /* have housenumber, miss postcode */
    183     area[building][addr:housenumber][!addr:postcode] {
    184 
    185     text: eval("postcode?"); width: 2; fill-color: #FF0000; fill-opacity:0.9; text-color: #000000; font-size: 10; casing-width: 1; casing-color: #FFFF00;
    186 
    187 }
    188 node[addr:housenumber][!addr:postcode]::halo {
    189 
    190     symbol-shape: triangle; symbol-fill-opacity:0.7; symbol-fill-color: #FF0000; symbol-size: 30; symbol-stroke-color: #FFFF00; symbol-stroke-width:2; z-index: -1;
    191 
    192 } node[addr:housenumber][addr:postcode] {
    193 
    194     text-color: #000000; font-size: 10;
    195 
     4meta   
     5{
     6        title: "Coloured Postcode";
     7        author: "geozeisig";
     8        version: "1.0[[revision]]_[[date]]";
     9        description: "Style to ease mapping of Postcode by colouring streets and houses and nodes";
     10        link: "http://josm.openstreetmap.de/wiki/Styles/Coloured_Streets";
     11        watch-modified: true;
     12}
     13       
     14       
     15/* highlight buildings and highways */
     16area[building]["addr:postcode"$="1"]
     17{
     18        color: #FFFF00;
     19        fill-color: #FFFF00;
     20        width: 3;
     21}
     22node["addr:postcode"$="1"]::halo
     23{
     24        symbol-fill-color: #FFFF00;
     25        symbol-shape: circle;
     26        symbol-size: 20;
     27        z-index: -1;
     28}
     29way["postal_code"$="1"]
     30{
     31        color: #FFFF00;
     32        width: 3;
     33        font-size: 12;
     34        text-color: #000000;
     35        text-position: line;
     36        text: "postal_code";
     37        text-offset: 0;
     38        text-halo-color: #FFFF00;
     39        text-halo-radius:2
     40}
     41
     42area[building]["addr:postcode"$="2"]
     43{
     44        color: #FF00FF;
     45        fill-color: #FF00FF;
     46        width: 3;
     47}
     48node["addr:postcode"$="2"]::halo
     49{
     50        symbol-fill-color: #FF00FF;
     51        symbol-shape: circle;
     52        symbol-size: 20;
     53        z-index: -1;
     54}
     55way["postal_code"$="2"]
     56{
     57        color: #FF00FF;
     58        width: 3;
     59        font-size: 12;
     60        text-color: #000000;
     61        text-position: line;
     62        text: "postal_code";
     63        text-offset: 0;
     64        text-halo-color: #FF00FF;
     65        text-halo-radius:2
     66}
     67
     68area[building]["addr:postcode"$="3"]
     69{
     70        color: #A45200;
     71        fill-color: #A45200;
     72        width: 3;
     73}
     74node["addr:postcode"$="3"]::halo
     75{
     76        symbol-fill-color: #A45200;
     77        symbol-shape: circle;
     78        symbol-size: 20;
     79        z-index: -1;
     80}
     81way["postal_code"$="3"]
     82{
     83        color: #A45200;
     84        width: 3;
     85        font-size: 12;
     86        text-color: #000000;
     87        text-position: line;
     88        text: "postal_code";
     89        text-offset: 0;
     90        text-halo-color: #A45200;
     91        text-halo-radius:2
     92}
     93
     94area[building]["addr:postcode"$="4"]
     95{
     96        fill-color: #FB9A99;
     97        width: 3;
     98}
     99node["addr:postcode"$="4"]::halo
     100{
     101        color: #FB9A99;
     102        symbol-fill-color: #FB9A99;
     103        symbol-shape: circle;
     104        symbol-size: 20;
     105        z-index: -1;
     106}
     107way["postal_code"$="4"]
     108{
     109        color: #FB9A99;
     110        width: 3;
     111        font-size: 12;
     112        text-color: #000000;
     113        text-position: line;
     114        text: "postal_code";
     115        text-offset: 0;
     116        text-halo-color: #FB9A99;
     117        text-halo-radius:2
     118}
     119
     120area[building]["addr:postcode"$="5"]
     121{
     122        color: #FECC34;
     123        fill-color: #FECC34;
     124        width: 3;
     125}
     126node["addr:postcode"$="5"]::halo
     127{
     128        symbol-fill-color: #FECC34;
     129        symbol-shape: circle;
     130        symbol-size: 20;
     131        z-index: -1;
     132}
     133way["postal_code"$="5"]
     134{
     135        color: #FECC34;
     136        width: 3;
     137        font-size: 12;
     138        text-color: #000000;
     139        text-position: line;
     140        text: "postal_code";
     141        text-offset: 0;
     142        text-halo-color: #FECC34;
     143        text-halo-radius:2
     144}
     145
     146area[building]["addr:postcode"$="6"]
     147{
     148        color: #1F78B4;
     149        fill-color: #1F78B4;
     150        width: 3;
     151}
     152node["addr:postcode"$="6"]::halo
     153{
     154        symbol-fill-color: #1F78B4;
     155        symbol-shape: circle;
     156        symbol-size: 20;
     157        z-index: -1;
     158}
     159way["postal_code"$="6"]
     160{
     161        color: #1F78B4;
     162        width: 3;
     163        font-size: 12;
     164        text-color: #000000;
     165        text-position: line;
     166        text: "postal_code";
     167        text-offset: 0;
     168        text-halo-color: #1F78B4;
     169        text-halo-radius:2
     170}
     171
     172area[building]["addr:postcode"$="7"]
     173{
     174        color: #6A3D9A;
     175        fill-color: #6A3D9A;
     176        width: 3;
     177}
     178node["addr:postcode"$="7"]::halo
     179{
     180        symbol-fill-color: #6A3D9A;
     181        symbol-shape: circle;
     182        symbol-size: 20;
     183        z-index: -1;
     184}
     185way["postal_code"$="7"]
     186{
     187        color: #6A3D9A;
     188        width: 3;
     189        font-size: 12;
     190        text-color: #000000;
     191        text-position: line;
     192        text: "postal_code";
     193        text-offset: 0;
     194        text-halo-color: #6A3D9A;
     195        text-halo-radius:2
     196}
     197
     198area[building]["addr:postcode"$="8"]
     199{
     200        color: #A6CEE3;
     201        fill-color: #A6CEE3;
     202        width: 3;
     203}
     204node["addr:postcode"$="8"]::halo
     205{
     206        symbol-fill-color: #A6CEE3;
     207        symbol-shape: circle;
     208        symbol-size: 20;
     209        z-index: -1;
     210}
     211way["postal_code"$="8"]
     212{
     213        color: #A6CEE3;
     214        width: 3;
     215        font-size: 12;
     216        text-color: #000000;
     217        text-position: line;
     218        text: "postal_code";
     219        text-offset: 0;
     220        text-halo-color: #A6CEE3;
     221        text-halo-radius:2
     222}
     223
     224area[building]["addr:postcode"$="9"]
     225{
     226        fill-color: #3ED2A6;
     227        width: 3;
     228}
     229node["addr:postcode"$="9"]::halo
     230{
     231        color: #3ED2A6;
     232        symbol-fill-color: #3ED2A6;
     233        symbol-shape: circle;
     234        symbol-size: 20;
     235        z-index: -1;
     236}
     237way["postal_code"$="9"]
     238{
     239        color: #3ED2A6;
     240        width: 3;
     241        font-size: 12;
     242        text-color: #000000;
     243        text-position: line;
     244        text: "postal_code";
     245        text-offset: 0;
     246        text-halo-color: #3ED2A6;
     247        text-halo-radius:2
     248}
     249
     250area[building]["addr:postcode"$="0"]
     251{
     252        color: #0FF05E;
     253        fill-color: #0FF05E;
     254        width: 3;
     255}
     256node["addr:postcode"$="0"]::halo
     257{
     258        symbol-fill-color: #0FF05E;
     259        symbol-shape: circle;
     260        symbol-size: 20;
     261        z-index: -1;
     262}
     263way["postal_code"$="0"]
     264{
     265        color: #0FF05E;
     266        width: 3;
     267        font-size: 12;
     268        text-color: #000000;
     269        text-position: line;
     270        text: "postal_code";
     271        text-offset: 0;
     272        text-halo-color: #0FF05E;
     273        text-halo-radius:2
     274}
     275       
     276
     277/* all marked  housenumber in black color */
     278node["addr:postcode"]
     279{
     280        font-size: 10;
     281        text-color: black;
     282}
     283area[building]["addr:postcode"]
     284{
     285        text-color: black;
     286        font-size: 10;
     287}
     288       
     289/* have housenumber, miss postcode */
     290area[building][addr:housenumber][!addr:postcode]
     291{
     292        text: eval("postcode?");
     293        width: 2;
     294        fill-color: #FF0000; 
     295        fill-opacity:0.9;
     296        font-size: 10;
     297        casing-width: 1;
     298        casing-color: #FFFF00;
     299}
     300node[addr:housenumber][!addr:postcode]::halo
     301{
     302        symbol-shape: triangle;
     303        symbol-fill-opacity:0.7;
     304        symbol-fill-color: #FF0000;
     305        symbol-size: 30;
     306        symbol-stroke-color: #FFFF00;
     307        symbol-stroke-width:2;
     308        z-index: -1;
     309}
     310node[addr:housenumber][!addr:postcode]
     311{
     312        text-color: #000000;
     313        font-size: 10;
    196314}
    197315
    198316/* have highway, miss postal_code */
    199   way[highway=residential][!postal_code], way[highway=tertiary][name][!postal_code], way[highway=secondary][name][!postal_code], way[highway=primary][name][!postal_code], way[highway=primary_link][name][!postal_code], way[highway=pedestrian][!postal_code]::error_layer {
    200 
    201     color: red; width: 5; dashes: 20,4; dashes-background-color: #FFFF00; object-z-index:-1.0;
    202 
    203 }
    204 
    205 /* highlight boundary */
    206 relation[type=boundary][boundary=postal_code] {
    207 
    208     width: 5; color: red; dashes: 10;
    209 }
     317way[highway][name][!postal_code]
     318{
     319        text: eval("postal_code?");
     320        font-size: 12;
     321        color: red;
     322        width: 5;
     323        dashes: 20,4;
     324        dashes-background-color: #FFFF00;
     325}
     326
     327/* highlight boundary */
     328relation[type=boundary][boundary=postal_code]
     329{
     330        width: 5;
     331        color: red;
     332        dashes: 10;
     333}
     334
    210335}}}