Changes between Version 1 and Version 2 of Styles/Coloured_Postcode


Ignore:
Timestamp:
2012-12-26T11:16:32+01:00 (13 years ago)
Author:
geozeisig
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Coloured_Postcode

    v1 v2  
    77    title: "Coloured Postcode"; author: "geozeisig"; version: "0.[[revision]]_[[date]]"; description: "Style to ease mapping of Postcode by colouring streets and houses and nodes"; description: "missing postcode is marked in red/yellow"; description: "boundary=postal_code is marked in red dashes";
    88
    9 } /* highlight buildings and highways */ area[building]["addr:postcode"$="1"] {
     9}
     10/* highlight buildings and highways */ area[building]["addr:postcode"$="1"] {
    1011
    1112    color: #FFFF00; fill-color: #FFFF00; width: 3;
     
    147148}
    148149
    149 /* all marked housenumber in black color */ nodeaddr:postcode? {
     150/* all marked housenumber in black color */
     151        node[addr:postcode?] {
    150152
    151153    font-size: 10; text-color: black;
    152154
    153 } area[building]addr:postcode? {
     155}
     156area[building]["addr:postcode"] {
    154157
    155158    text-color: black; font-size: 10;
    156159
    157 } /* have housenumber, miss postcode */ area[building][addr:housenumber][addr:postcode] {
     160}
     161/* have housenumber, miss postcode */
     162    area[building][addr:housenumber][!addr:postcode] {
    158163
    159164    text: eval("postcode?"); width: 2; fill-color: #FF0000; fill-opacity:0.9; text-color: #000000; font-size: 10; casing-width: 1; casing-color: #FFFF00;
    160165
    161 } node[addr:housenumber][addr:postcode]::halo {
     166}
     167node[addr:housenumber][!addr:postcode]::halo {
    162168
    163169    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;
     
    169175}
    170176
    171 /* have highway, miss postal_code */ /* highway secondary,tertiary,primary only when named */ 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 {
     177/* have highway, miss postal_code */
     178  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 {
    172179
    173180    color: red; width: 5; dashes: 20,4; dashes-background-color: #FFFF00; object-z-index:-1.0;