Changes between Version 57 and Version 58 of Styles/Coloured_Streets
- Timestamp:
- 2014-07-04T00:42:58+02:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Coloured_Streets
v57 v58 159 159 { 160 160 title: "Coloured Streets"; 161 version: "3.2 3.[[revision]]_[[date]]";162 description: "Colouring of buildings, address nodes and streets with the same street name in the same colour. Makes working with addresses a lot easier. Check out the linked page to read how to change some settings of this mappaint style. Min. JOSM version is 6909.";161 version: "3.24.[[revision]]_[[date]]"; 162 description: "Colouring of buildings, address nodes and streets with the same street name in the same colour. Makes working with addresses a lot easier. Check out the linked page to read how to change some settings of this mappaint style. Min. JOSM version is 7287."; 163 163 icon: "http://upload.wikimedia.org/wikipedia/commons/3/3a/ColouredStreetsIcon.png"; 164 164 author: "geozeisig, Klumbumbus"; 165 165 link: "http://josm.openstreetmap.de/wiki/Styles/Coloured_Streets"; 166 166 watch-modified: true; 167 min-josm-version: " 6909";168 /* This mapcss mappaint style was created for JOSM 6909. I try to support future versions of JOSM as long as possible. */167 min-josm-version: "7287"; 168 /* This mapcss mappaint style was created for JOSM 7287. I try to support future versions of JOSM as long as possible. */ 169 169 } 170 170 … … 172 172 { 173 173 title: "Coloured Streets"; 174 description: "Einfärben von Gebäuden, Adressnodes und Straßen mit gleichem Straßennamen in der gleichen Farbe. Macht die Arbeit mit Adressen wesentlich leichter. Schau dir die verlinkte Seite an, um zu lesen, wie man einige Einstellungen dieses MapMaint-Stils ändert. Min. JOSM-Version ist 6909.";174 description: "Einfärben von Gebäuden, Adressnodes und Straßen mit gleichem Straßennamen in der gleichen Farbe. Macht die Arbeit mit Adressen wesentlich leichter. Schau dir die verlinkte Seite an, um zu lesen, wie man einige Einstellungen dieses MapMaint-Stils ändert. Min. JOSM-Version ist 7287."; 175 175 link: "http://josm.openstreetmap.de/wiki/De:Styles/Coloured_Streets"; 176 176 } 177 177 178 /* create "settings" with the help of colours: boolean properties with style_... */ 179 178 /* ------------------------------------------------------------------------------------------------------------------------ */ 179 /* ------------------------------------------------------------------------------------------------------------------------ */ 180 /* ------------------------------------------------------------------------------------------------------------------------ */ 181 182 /* Create settings. After changing a setting in the advanced preferences you need to disable and reenable the style to apply the changes. */ 180 183 * 181 184 { 182 allow_postcode_on_highway: Boolean_allow_postcode_on_highway#000000; 183 style_allow_postcode_on_highway: eval(red(prop(allow_postcode_on_highway)))=1; 184 /* default colour is black, that means postcodes on highways are not allowed, that means style_allow_postcode_on_highway=false */ 185 } 186 187 * 188 { 189 support_prefix_and_suffix_on_highway_names: Boolean_support_prefix_and_suffix_on_highway_names#000000; 190 style_support_prefix_and_suffix_on_highway_names: eval(red(prop(support_prefix_and_suffix_on_highway_names)))=1; 191 /* default colour is black, that means prefix and suffix is not supported, that means style_support_prefix_and_suffix_on_highway_names=false */ 192 } 193 194 /* create crc32checksums */ 185 show_bicycle: JOSM_pref(coloured_streets_setting_show_cycleway_dashes, false); 186 /* Default is false, that means the coloured dashes of streets with cycleway=* and named cycle-/footways are hidden. This is because the coloured dashes can confuse you in Coloured Streets.*/ 187 allow_postcode: JOSM_pref(coloured_streets_setting_allow_postcode, false); 188 /* Default is false, that means a warning is displayed, if you put postcode=* on streets. */ 189 support_prefix_and_suffix: JOSM_pref(coloured_streets_setting_support_prefix_and_suffix_on_highway_names, false); 190 /* Default is false, that means prefix and suffix are ignored. */ 191 } 192 193 /* create crc32checksums. They are use later in the stylesheet to determine the colour. Due to the division by 429496.7296 crc is always a number between 0 and 10000. */ 195 194 /* streets and pedestrian areas */ 196 way[highway][name][highway!="platform"][ !prop(style_support_prefix_and_suffix_on_highway_names)],197 way[highway][name][highway!="platform"][prop(s tyle_support_prefix_and_suffix_on_highway_names)][!name:prefix][!name:suffix],198 area[highway="pedestrian"][name][ !prop(style_support_prefix_and_suffix_on_highway_names)]:closed,199 area[highway="pedestrian"][name][prop(s tyle_support_prefix_and_suffix_on_highway_names)][!name:prefix][!name:suffix]:closed195 way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=false], 196 way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=true][!name:prefix][!name:suffix], 197 area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=false]:closed, 198 area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=true][!name:prefix][!name:suffix]:closed 200 199 { 201 200 crc: CRC32_checksum(tag(name))/429496.7296; 202 201 } 203 way[highway][name][highway!="platform"][prop(s tyle_support_prefix_and_suffix_on_highway_names)][name:prefix][!name:suffix],204 area[highway="pedestrian"][name][prop(s tyle_support_prefix_and_suffix_on_highway_names)][name:prefix][!name:suffix]:closed202 way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=true][name:prefix][!name:suffix], 203 area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=true][name:prefix][!name:suffix]:closed 205 204 { 206 205 crc: CRC32_checksum(concat(tag("name:prefix"), " ", tag("name")))/429496.7296; 207 206 } 208 way[highway][name][highway!="platform"][prop(s tyle_support_prefix_and_suffix_on_highway_names)][!name:prefix][name:suffix],209 area[highway="pedestrian"][name][prop(s tyle_support_prefix_and_suffix_on_highway_names)][!name:prefix][name:suffix]:closed207 way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=true][!name:prefix][name:suffix], 208 area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=true][!name:prefix][name:suffix]:closed 210 209 { 211 210 crc: CRC32_checksum(concat(tag("name"), " ", tag("name:suffix")))/429496.7296; 212 211 } 213 way[highway][name][highway!="platform"][prop(s tyle_support_prefix_and_suffix_on_highway_names)][name:prefix][name:suffix],214 area[highway="pedestrian"][name][prop(s tyle_support_prefix_and_suffix_on_highway_names)][name:prefix][name:suffix]:closed212 way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=true][name:prefix][name:suffix], 213 area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=true][name:prefix][name:suffix]:closed 215 214 { 216 215 crc: CRC32_checksum(concat(tag("name:prefix"), " ", tag("name"), " ", tag("name:suffix")))/429496.7296; … … 218 217 219 218 /* associated street relations */ 220 relation[type="associatedStreet"][name] > area["addr:housenumber"][ !prop(style_support_prefix_and_suffix_on_highway_names)],221 relation[type="associatedStreet"][name] > node["addr:housenumber"][ !prop(style_support_prefix_and_suffix_on_highway_names)]::halo,222 relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > area["addr:housenumber"][prop(s tyle_support_prefix_and_suffix_on_highway_names)],223 relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > node["addr:housenumber"][prop(s tyle_support_prefix_and_suffix_on_highway_names)]::halo219 relation[type="associatedStreet"][name] > area["addr:housenumber"][prop(support_prefix_and_suffix)=false], 220 relation[type="associatedStreet"][name] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=false]::halo, 221 relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > area["addr:housenumber"][prop(support_prefix_and_suffix)=true], 222 relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=true]::halo 224 223 { 225 224 crc: CRC32_checksum(parent_tag("name"))/429496.7296; 226 225 } 227 relation[type="associatedStreet"][name][name:prefix][!name:suffix] > area["addr:housenumber"][prop(s tyle_support_prefix_and_suffix_on_highway_names)],228 relation[type="associatedStreet"][name][name:prefix][!name:suffix] > node["addr:housenumber"][prop(s tyle_support_prefix_and_suffix_on_highway_names)]::halo226 relation[type="associatedStreet"][name][name:prefix][!name:suffix] > area["addr:housenumber"][prop(support_prefix_and_suffix)=true], 227 relation[type="associatedStreet"][name][name:prefix][!name:suffix] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=true]::halo 229 228 { 230 229 crc: CRC32_checksum(concat(parent_tag("name:prefix"), " ", parent_tag("name")))/429496.7296; 231 230 } 232 relation[type="associatedStreet"][name][!name:prefix][name:suffix] > area["addr:housenumber"][prop(s tyle_support_prefix_and_suffix_on_highway_names)],233 relation[type="associatedStreet"][name][!name:prefix][name:suffix] > node["addr:housenumber"][prop(s tyle_support_prefix_and_suffix_on_highway_names)]::halo231 relation[type="associatedStreet"][name][!name:prefix][name:suffix] > area["addr:housenumber"][prop(support_prefix_and_suffix)=true], 232 relation[type="associatedStreet"][name][!name:prefix][name:suffix] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=true]::halo 234 233 { 235 234 crc: CRC32_checksum(concat(parent_tag("name"), " ", parent_tag("name:suffix")))/429496.7296; 236 235 } 237 relation[type="associatedStreet"][name][name:prefix][name:suffix] > area["addr:housenumber"][prop(s tyle_support_prefix_and_suffix_on_highway_names)],238 relation[type="associatedStreet"][name][name:prefix][name:suffix] > node["addr:housenumber"][prop(s tyle_support_prefix_and_suffix_on_highway_names)]::halo236 relation[type="associatedStreet"][name][name:prefix][name:suffix] > area["addr:housenumber"][prop(support_prefix_and_suffix)=true], 237 relation[type="associatedStreet"][name][name:prefix][name:suffix] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=true]::halo 239 238 { 240 239 crc: CRC32_checksum(concat(parent_tag("name:prefix"), " ", parent_tag("name"), " ", parent_tag("name:suffix")))/429496.7296; … … 259 258 } 260 259 260 /* ------------------------------------------------------------------------------------------------------------------------ */ 261 /* ------------------------------------------------------------------------------------------------------------------------ */ 261 262 /* ------------------------------------------------------------------------------------------------------------------------ */ 262 263 … … 308 309 309 310 /* bigger text of nodes and areas on high zoom levels */ 310 311 311 node|z20,area|z20 { font-size: 9; } 312 312 node|z21,area|z21 { font-size: 10; } … … 314 314 315 315 /* ------------------------------------------------------------------------------------------------------------------------ */ 316 /* ------------------------------------------------------------------------------------------------------------------------ */ 317 /* ------------------------------------------------------------------------------------------------------------------------ */ 316 318 317 319 /* tone down landuse fill-color */ 318 319 320 area[landuse] 320 321 { … … 323 324 324 325 /* disable place fill-color */ 325 326 326 area[place] 327 327 { … … 329 329 } 330 330 331 /* tone down garages and other "small" buildings, as they usually do not have addr:*=* tags. */ 332 331 /* tone down garages and other "minor" buildings, as they usually do not have addr:*=* tags. */ 333 332 area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=barn], 334 333 area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=bunker], 335 334 area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=cabin], 336 335 area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=cowshed], 337 area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=farm],338 336 area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=farm_auxiliary], 339 337 area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=garage], … … 351 349 } 352 350 353 /* deactivate the paint style of piste:difficulty from the default josm style elemstyle.mapcss, because it is distracting in Coloured Streets */354 351 /* deactivate the paint style of piste:difficulty from the default josm 352 style elemstyle.mapcss, because it is distracting in Coloured Streets */ 355 353 way["piste:difficulty"]::core_piste 356 354 { … … 360 358 area["piste:difficulty"]:closed::core_piste 361 359 { 362 fill-opacity: 1; 363 } 364 360 fill-opacity: 1; 361 } 362 363 /* option to deactivate the paint style of cycleways (lane and track) from the default 364 josm style elemstyle.mapcss, because it can be distracting in Coloured Streets */ 365 way.lR[prop(show_bicycle, default)=false]::core_cycleway, 366 way.tR[prop(show_bicycle, default)=false]::core_cycleway, 367 way[cycleway=opposite][prop(show_bicycle, default)=false]::core_cycleway 368 { 369 width: 0; 370 } 371 372 /* (grouping the previous and the following block doesn't work correctly, see http://josm.openstreetmap.de/ticket/10106 )*/ 373 way[prop("tL","core_cycleway")][prop(show_bicycle, default)=false]::core_cycleway2, 374 way[prop("lL","core_cycleway")][prop(show_bicycle, default)=false]::core_cycleway2 375 { 376 width: 0; 377 } 378 379 way[prop(show_bicycle)=false][name][highway=path][bicycle=designated][foot=designated], 380 way[prop(show_bicycle)=false][name][highway=path][bicycle=official][foot=official], 381 way[prop(show_bicycle)=false][name][highway=cycleway][foot=yes], 382 way[prop(show_bicycle)=false][name][highway=path][bicycle=designated][foot=yes], 383 way[prop(show_bicycle)=false][name][highway=path][bicycle=official][foot=yes], 384 way[prop(show_bicycle)=false][name][highway=footway][bicycle=yes], 385 way[prop(show_bicycle)=false][name][highway=path][bicycle=yes][foot=designated], 386 way[prop(show_bicycle)=false][name][highway=path][bicycle=yes][foot=official] 387 { 388 dashes: none; 389 } 390 391 /* ------------------------------------------------------------------------------------------------------------------------ */ 392 /* ------------------------------------------------------------------------------------------------------------------------ */ 365 393 /* ------------------------------------------------------------------------------------------------------------------------ */ 366 394 … … 386 414 } 387 415 /* address nodes */ 388 389 416 node|z17-["addr:street"]::halo, 390 417 node|z17-["addr:place"]::halo, … … 673 700 text-halo-color: #6b8e23; 674 701 } 675 way["highway"]["name"][prop(crc)>=1818][prop(crc)<2121] 702 way["highway"]["name"][prop(crc)>=1818][prop(crc)<2121] 676 703 { 677 704 color: #6b8e23; … … 717 744 text-halo-color: #7fffd4; 718 745 } 719 way["highway"]["name"][prop(crc)>=2424][prop(crc)<2727] 746 way["highway"]["name"][prop(crc)>=2424][prop(crc)<2727] 720 747 { 721 748 color: #7fffd4; … … 761 788 text-halo-color: #a52a2a; 762 789 } 763 way["highway"]["name"][prop(crc)>=3030][prop(crc)<3333] 790 way["highway"]["name"][prop(crc)>=3030][prop(crc)<3333] 764 791 { 765 792 color: #a52a2a; … … 783 810 text-halo-color: #f0b9a6; 784 811 } 785 way["highway"]["name"][prop(crc)>=3333][prop(crc)<3636] 812 way["highway"]["name"][prop(crc)>=3333][prop(crc)<3636] 786 813 { 787 814 color: #f0b9a6; … … 805 832 text-halo-color: #8fbc8f; 806 833 } 807 way["highway"]["name"][prop(crc)>=3636][prop(crc)<3939] 834 way["highway"]["name"][prop(crc)>=3636][prop(crc)<3939] 808 835 { 809 836 color: #8fbc8f; … … 827 854 text-halo-color: #1b7777; 828 855 } 829 way["highway"]["name"][prop(crc)>=3939][prop(crc)<4242] 856 way["highway"]["name"][prop(crc)>=3939][prop(crc)<4242] 830 857 { 831 858 color: #1b7777; … … 849 876 text-halo-color: #ff1493; 850 877 } 851 way["highway"]["name"][prop(crc)>=4242][prop(crc)<4545] 878 way["highway"]["name"][prop(crc)>=4242][prop(crc)<4545] 852 879 { 853 880 color: #ff1493; … … 871 898 text-halo-color: #0072e2; 872 899 } 873 way["highway"]["name"][prop(crc)>=4545][prop(crc)<4848] 900 way["highway"]["name"][prop(crc)>=4545][prop(crc)<4848] 874 901 { 875 902 color: #0072e2; … … 893 920 text-halo-color: #008f00; 894 921 } 895 way["highway"]["name"][prop(crc)>=4848][prop(crc)<5151] 922 way["highway"]["name"][prop(crc)>=4848][prop(crc)<5151] 896 923 { 897 924 color: #008f00; … … 915 942 text-halo-color: #ffcc00; 916 943 } 917 way["highway"]["name"][prop(crc)>=5151][prop(crc)<5454] 944 way["highway"]["name"][prop(crc)>=5151][prop(crc)<5454] 918 945 { 919 946 color: #ffcc00; … … 959 986 text-halo-color: #adff2f; 960 987 } 961 way["highway"]["name"][prop(crc)>=5757][prop(crc)<6060] 988 way["highway"]["name"][prop(crc)>=5757][prop(crc)<6060] 962 989 { 963 990 color: #adff2f; … … 981 1008 text-halo-color: #ff69b4; 982 1009 } 983 way["highway"]["name"][prop(crc)>=6060][prop(crc)<6363] 1010 way["highway"]["name"][prop(crc)>=6060][prop(crc)<6363] 984 1011 { 985 1012 color: #ff69b4; … … 1025 1052 text-halo-color: #7d5a07; 1026 1053 } 1027 way["highway"]["name"][prop(crc)>=6666][prop(crc)<6969] 1054 way["highway"]["name"][prop(crc)>=6666][prop(crc)<6969] 1028 1055 { 1029 1056 color: #7d5a07; … … 1047 1074 text-halo-color: #824600; 1048 1075 } 1049 way["highway"]["name"][prop(crc)>=6969][prop(crc)<7272] 1076 way["highway"]["name"][prop(crc)>=6969][prop(crc)<7272] 1050 1077 { 1051 1078 color: #824600; … … 1069 1096 text-halo-color: #f08080; 1070 1097 } 1071 way["highway"]["name"][prop(crc)>=7272][prop(crc)<7575] 1098 way["highway"]["name"][prop(crc)>=7272][prop(crc)<7575] 1072 1099 { 1073 1100 color: #f08080; … … 1091 1118 text-halo-color: #F75617; 1092 1119 } 1093 way["highway"]["name"][prop(crc)>=7575][prop(crc)<7878] 1120 way["highway"]["name"][prop(crc)>=7575][prop(crc)<7878] 1094 1121 { 1095 1122 color: #F75617; … … 1113 1140 text-halo-color: #54d954; 1114 1141 } 1115 way["highway"]["name"][prop(crc)>=7878][prop(crc)<8181] 1142 way["highway"]["name"][prop(crc)>=7878][prop(crc)<8181] 1116 1143 { 1117 1144 color: #54d954; … … 1135 1162 text-halo-color: #ba55d3; 1136 1163 } 1137 way["highway"]["name"][prop(crc)>=8181][prop(crc)<8484] 1164 way["highway"]["name"][prop(crc)>=8181][prop(crc)<8484] 1138 1165 { 1139 1166 color: #ba55d3; … … 1157 1184 text-halo-color: #9370db; 1158 1185 } 1159 way["highway"]["name"][prop(crc)>=8484][prop(crc)<8787] 1186 way["highway"]["name"][prop(crc)>=8484][prop(crc)<8787] 1160 1187 { 1161 1188 color: #9370db; … … 1179 1206 text-halo-color: #ff7c00; 1180 1207 } 1181 way["highway"]["name"][prop(crc)>=8787][prop(crc)<9090] 1208 way["highway"]["name"][prop(crc)>=8787][prop(crc)<9090] 1182 1209 { 1183 1210 color: #ff7c00; … … 1201 1228 text-halo-color: #3cb371; 1202 1229 } 1203 way["highway"]["name"][prop(crc)>=9090][prop(crc)<9393] 1230 way["highway"]["name"][prop(crc)>=9090][prop(crc)<9393] 1204 1231 { 1205 1232 color: #3cb371; … … 1224 1251 1225 1252 } 1226 way["highway"]["name"][prop(crc)>=9393][prop(crc)<9696] 1253 way["highway"]["name"][prop(crc)>=9393][prop(crc)<9696] 1227 1254 { 1228 1255 color: #707000; … … 1252 1279 } 1253 1280 1281 /* ------------------------------------------------------------------------------------------------------------------------ */ 1282 /* ------------------------------------------------------------------------------------------------------------------------ */ 1254 1283 /* ------------------------------------------------------------------------------------------------------------------------ */ 1255 1284 … … 1324 1353 /* street with addr:*=* */ 1325 1354 way["highway"]["addr:country"], 1326 way["highway"]["addr:postcode"][ !prop(style_allow_postcode_on_highway)],1355 way["highway"]["addr:postcode"][prop(allow_postcode)=false], 1327 1356 way["highway"]["addr:city"], 1328 1357 way["highway"]["addr:street"], … … 1338 1367 text-halo-color: red; 1339 1368 text-halo-radius: 2; 1340 1341 1369 } 1342 1370 … … 1361 1389 } 1362 1390 1363 1364 1391 /* names of nodes */ 1365 1392 node["addr:housenumber"] … … 1401 1428 font-size: 12; 1402 1429 text-position: center; 1403 1404 1430 } 1405 1431 … … 1427 1453 dashes: 20,4; 1428 1454 dashes-background-color: #FFFF00; 1429 1430 1455 } 1431 1456 }}}