Changes between Initial Version and Version 1 of Styles/Coloured_Postcode


Ignore:
Timestamp:
2012-12-26T10:27:29+01:00 (13 years ago)
Author:
lutz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Coloured_Postcode

    v1 v1  
     1{{{
     2#!style type="mapcss"
     3
     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"; description: "missing postcode is marked in red/yellow"; description: "boundary=postal_code is marked in red dashes";
     8
     9} /* highlight buildings and highways */ area[building]["addr:postcode"$="1"] {
     10
     11    color: #FFFF00; fill-color: #FFFF00; width: 3;
     12
     13} node["addr:postcode"$="1"]::halo {
     14
     15    symbol-fill-color: #FFFF00; symbol-shape: circle; symbol-size: 20; z-index: -1;
     16
     17} way["postal_code"$="1"] {
     18
     19    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
     20
     21}
     22
     23area[building]["addr:postcode"$="2"] {
     24
     25    color: #FF00FF; fill-color: #FF00FF; width: 3;
     26
     27} node["addr:postcode"$="2"]::halo {
     28
     29    symbol-fill-color: #FF00FF; symbol-shape: circle; symbol-size: 20; z-index: -1;
     30
     31} way["postal_code"$="2"] {
     32
     33    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
     34
     35}
     36
     37area[building]["addr:postcode"$="3"] {
     38
     39    color: #A45200; fill-color: #A45200; width: 3;
     40
     41} node["addr:postcode"$="3"]::halo {
     42
     43    symbol-fill-color: #A45200; symbol-shape: circle; symbol-size: 20; z-index: -1;
     44
     45} way["postal_code"$="3"] {
     46
     47    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
     48
     49}
     50
     51area[building]["addr:postcode"$="4"] {
     52
     53    fill-color: #FB9A99; width: 3;
     54
     55} node["addr:postcode"$="4"]::halo {
     56
     57    color: #FB9A99; symbol-fill-color: #FB9A99; symbol-shape: circle; symbol-size: 20; z-index: -1;
     58
     59} way["postal_code"$="4"] {
     60
     61    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
     62
     63}
     64
     65area[building]["addr:postcode"$="5"] {
     66
     67    color: #FECC34; fill-color: #FECC34; width: 3;
     68
     69} node["addr:postcode"$="5"]::halo {
     70
     71    symbol-fill-color: #FECC34; symbol-shape: circle; symbol-size: 20; z-index: -1;
     72
     73} way["postal_code"$="5"] {
     74
     75    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
     76
     77}
     78
     79area[building]["addr:postcode"$="6"] {
     80
     81    color: #1F78B4; fill-color: #1F78B4; width: 3;
     82
     83} node["addr:postcode"$="6"]::halo {
     84
     85    symbol-fill-color: #1F78B4; symbol-shape: circle; symbol-size: 20; z-index: -1;
     86
     87} way["postal_code"$="6"] {
     88
     89    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
     90
     91}
     92
     93area[building]["addr:postcode"$="7"] {
     94
     95    color: #6A3D9A; fill-color: #6A3D9A; width: 3;
     96
     97} node["addr:postcode"$="7"]::halo {
     98
     99    symbol-fill-color: #6A3D9A; symbol-shape: circle; symbol-size: 20; z-index: -1;
     100
     101} way["postal_code"$="7"] {
     102
     103    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
     104
     105}
     106
     107area[building]["addr:postcode"$="8"] {
     108
     109    color: #A6CEE3; fill-color: #A6CEE3; width: 3;
     110
     111} node["addr:postcode"$="8"]::halo {
     112
     113    symbol-fill-color: #A6CEE3; symbol-shape: circle; symbol-size: 20; z-index: -1;
     114
     115} way["postal_code"$="8"] {
     116
     117    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
     118
     119}
     120
     121area[building]["addr:postcode"$="9"] {
     122
     123    fill-color: #3ED2A6; width: 3;
     124
     125} node["addr:postcode"$="9"]::halo {
     126
     127    color: #3ED2A6; symbol-fill-color: #3ED2A6; symbol-shape: circle; symbol-size: 20; z-index: -1;
     128
     129} way["postal_code"$="9"] {
     130
     131    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
     132
     133}
     134
     135area[building]["addr:postcode"$="0"] {
     136
     137    color: #0FF05E; fill-color: #0FF05E; width: 3;
     138
     139} node["addr:postcode"$="0"]::halo {
     140
     141    symbol-fill-color: #0FF05E; symbol-shape: circle; symbol-size: 20; z-index: -1;
     142
     143} way["postal_code"$="0"] {
     144
     145    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
     146
     147}
     148
     149/* all marked housenumber in black color */ nodeaddr:postcode? {
     150
     151    font-size: 10; text-color: black;
     152
     153} area[building]addr:postcode? {
     154
     155    text-color: black; font-size: 10;
     156
     157} /* have housenumber, miss postcode */ area[building][addr:housenumber][addr:postcode] {
     158
     159    text: eval("postcode?"); width: 2; fill-color: #FF0000; fill-opacity:0.9; text-color: #000000; font-size: 10; casing-width: 1; casing-color: #FFFF00;
     160
     161} node[addr:housenumber][addr:postcode]::halo {
     162
     163    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;
     164
     165} node[addr:housenumber][addr:postcode] {
     166
     167    text-color: #000000; font-size: 10;
     168
     169}
     170
     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 {
     172
     173    color: red; width: 5; dashes: 20,4; dashes-background-color: #FFFF00; object-z-index:-1.0;
     174
     175}
     176
     177/* highlight boundary */ relation[type=boundary][boundary=postal_code] {
     178
     179    width: 5; color: red; dashes: 10;
     180}
     181
     182}}}