Changes between Version 1 and Version 2 of Styles/Coloured_Postcode
- Timestamp:
- 2012-12-26T11:16:32+01:00 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Coloured_Postcode
v1 v2 7 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 8 9 } /* highlight buildings and highways */ area[building]["addr:postcode"$="1"] { 9 } 10 /* highlight buildings and highways */ area[building]["addr:postcode"$="1"] { 10 11 11 12 color: #FFFF00; fill-color: #FFFF00; width: 3; … … 147 148 } 148 149 149 /* all marked housenumber in black color */ nodeaddr:postcode? { 150 /* all marked housenumber in black color */ 151 node[addr:postcode?] { 150 152 151 153 font-size: 10; text-color: black; 152 154 153 } area[building]addr:postcode? { 155 } 156 area[building]["addr:postcode"] { 154 157 155 158 text-color: black; font-size: 10; 156 159 157 } /* have housenumber, miss postcode */ area[building][addr:housenumber][addr:postcode] { 160 } 161 /* have housenumber, miss postcode */ 162 area[building][addr:housenumber][!addr:postcode] { 158 163 159 164 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 165 161 } node[addr:housenumber][addr:postcode]::halo { 166 } 167 node[addr:housenumber][!addr:postcode]::halo { 162 168 163 169 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; … … 169 175 } 170 176 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 { 172 179 173 180 color: red; width: 5; dashes: 20,4; dashes-background-color: #FFFF00; object-z-index:-1.0;
