Changes between Version 57 and Version 58 of Styles/Coloured_Streets


Ignore:
Timestamp:
2014-07-04T00:42:58+02:00 (11 years ago)
Author:
Klumbumbus
Comment:

update to 3.24.xx code

Legend:

Unmodified
Added
Removed
Modified
  • Styles/Coloured_Streets

    v57 v58  
    159159{
    160160        title: "Coloured Streets";
    161         version: "3.23.[[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.";
    163163        icon: "http://upload.wikimedia.org/wikipedia/commons/3/3a/ColouredStreetsIcon.png";
    164164        author: "geozeisig, Klumbumbus";
    165165        link: "http://josm.openstreetmap.de/wiki/Styles/Coloured_Streets";
    166166        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. */
    169169}
    170170
     
    172172{
    173173        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.";
    175175        link: "http://josm.openstreetmap.de/wiki/De:Styles/Coloured_Streets";
    176176}
    177177
    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. */
    180183*
    181184{
    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. */
    195194        /* 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(style_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(style_support_prefix_and_suffix_on_highway_names)][!name:prefix][!name:suffix]:closed
     195way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=false],
     196way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=true][!name:prefix][!name:suffix],
     197area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=false]:closed,
     198area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=true][!name:prefix][!name:suffix]:closed
    200199{
    201200        crc: CRC32_checksum(tag(name))/429496.7296;
    202201}
    203 way[highway][name][highway!="platform"][prop(style_support_prefix_and_suffix_on_highway_names)][name:prefix][!name:suffix],
    204 area[highway="pedestrian"][name][prop(style_support_prefix_and_suffix_on_highway_names)][name:prefix][!name:suffix]:closed
     202way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=true][name:prefix][!name:suffix],
     203area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=true][name:prefix][!name:suffix]:closed
    205204{
    206205        crc: CRC32_checksum(concat(tag("name:prefix"), " ", tag("name")))/429496.7296;
    207206}
    208 way[highway][name][highway!="platform"][prop(style_support_prefix_and_suffix_on_highway_names)][!name:prefix][name:suffix],
    209 area[highway="pedestrian"][name][prop(style_support_prefix_and_suffix_on_highway_names)][!name:prefix][name:suffix]:closed
     207way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=true][!name:prefix][name:suffix],
     208area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=true][!name:prefix][name:suffix]:closed
    210209{
    211210        crc: CRC32_checksum(concat(tag("name"), " ", tag("name:suffix")))/429496.7296;
    212211}
    213 way[highway][name][highway!="platform"][prop(style_support_prefix_and_suffix_on_highway_names)][name:prefix][name:suffix],
    214 area[highway="pedestrian"][name][prop(style_support_prefix_and_suffix_on_highway_names)][name:prefix][name:suffix]:closed
     212way[highway][name][highway!="platform"][prop(support_prefix_and_suffix)=true][name:prefix][name:suffix],
     213area[highway="pedestrian"][name][prop(support_prefix_and_suffix)=true][name:prefix][name:suffix]:closed
    215214{
    216215        crc: CRC32_checksum(concat(tag("name:prefix"), " ", tag("name"), " ", tag("name:suffix")))/429496.7296;
     
    218217
    219218        /* 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(style_support_prefix_and_suffix_on_highway_names)],
    223 relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > node["addr:housenumber"][prop(style_support_prefix_and_suffix_on_highway_names)]::halo
     219relation[type="associatedStreet"][name] > area["addr:housenumber"][prop(support_prefix_and_suffix)=false],
     220relation[type="associatedStreet"][name] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=false]::halo,
     221relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > area["addr:housenumber"][prop(support_prefix_and_suffix)=true],
     222relation[type="associatedStreet"][name][!name:prefix][!name:suffix] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=true]::halo
    224223{
    225224        crc: CRC32_checksum(parent_tag("name"))/429496.7296;
    226225}
    227 relation[type="associatedStreet"][name][name:prefix][!name:suffix] > area["addr:housenumber"][prop(style_support_prefix_and_suffix_on_highway_names)],
    228 relation[type="associatedStreet"][name][name:prefix][!name:suffix] > node["addr:housenumber"][prop(style_support_prefix_and_suffix_on_highway_names)]::halo
     226relation[type="associatedStreet"][name][name:prefix][!name:suffix] > area["addr:housenumber"][prop(support_prefix_and_suffix)=true],
     227relation[type="associatedStreet"][name][name:prefix][!name:suffix] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=true]::halo
    229228{
    230229        crc: CRC32_checksum(concat(parent_tag("name:prefix"), " ", parent_tag("name")))/429496.7296;
    231230}
    232 relation[type="associatedStreet"][name][!name:prefix][name:suffix] > area["addr:housenumber"][prop(style_support_prefix_and_suffix_on_highway_names)],
    233 relation[type="associatedStreet"][name][!name:prefix][name:suffix] > node["addr:housenumber"][prop(style_support_prefix_and_suffix_on_highway_names)]::halo
     231relation[type="associatedStreet"][name][!name:prefix][name:suffix] > area["addr:housenumber"][prop(support_prefix_and_suffix)=true],
     232relation[type="associatedStreet"][name][!name:prefix][name:suffix] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=true]::halo
    234233{
    235234        crc: CRC32_checksum(concat(parent_tag("name"), " ", parent_tag("name:suffix")))/429496.7296;
    236235}
    237 relation[type="associatedStreet"][name][name:prefix][name:suffix] > area["addr:housenumber"][prop(style_support_prefix_and_suffix_on_highway_names)],
    238 relation[type="associatedStreet"][name][name:prefix][name:suffix] > node["addr:housenumber"][prop(style_support_prefix_and_suffix_on_highway_names)]::halo
     236relation[type="associatedStreet"][name][name:prefix][name:suffix] > area["addr:housenumber"][prop(support_prefix_and_suffix)=true],
     237relation[type="associatedStreet"][name][name:prefix][name:suffix] > node["addr:housenumber"][prop(support_prefix_and_suffix, default)=true]::halo
    239238{
    240239        crc: CRC32_checksum(concat(parent_tag("name:prefix"), " ", parent_tag("name"), " ", parent_tag("name:suffix")))/429496.7296;
     
    259258}
    260259
     260/* ------------------------------------------------------------------------------------------------------------------------ */
     261/* ------------------------------------------------------------------------------------------------------------------------ */
    261262/* ------------------------------------------------------------------------------------------------------------------------ */
    262263
     
    308309
    309310        /* bigger text of nodes and areas on high zoom levels */
    310 
    311311node|z20,area|z20       { font-size: 9; }
    312312node|z21,area|z21       { font-size: 10; }
     
    314314
    315315/* ------------------------------------------------------------------------------------------------------------------------ */
     316/* ------------------------------------------------------------------------------------------------------------------------ */
     317/* ------------------------------------------------------------------------------------------------------------------------ */
    316318
    317319/* tone down landuse fill-color */
    318 
    319320area[landuse]
    320321{
     
    323324
    324325/* disable place fill-color */
    325 
    326326area[place]
    327327{
     
    329329}
    330330
    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. */
    333332area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=barn],
    334333area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=bunker],
    335334area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=cabin],
    336335area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=cowshed],
    337 area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=farm],
    338336area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=farm_auxiliary],
    339337area[!"addr:housenumber"][!"addr:street"][!"addr:place"][building=garage],
     
    351349}
    352350
    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
     352style elemstyle.mapcss, because it is distracting in Coloured Streets */
    355353way["piste:difficulty"]::core_piste
    356354{
     
    360358area["piste:difficulty"]:closed::core_piste
    361359{
    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
     364josm style elemstyle.mapcss, because it can be distracting in Coloured Streets */
     365way.lR[prop(show_bicycle, default)=false]::core_cycleway,
     366way.tR[prop(show_bicycle, default)=false]::core_cycleway,
     367way[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 )*/
     373way[prop("tL","core_cycleway")][prop(show_bicycle, default)=false]::core_cycleway2,
     374way[prop("lL","core_cycleway")][prop(show_bicycle, default)=false]::core_cycleway2
     375{
     376        width: 0;
     377}
     378
     379way[prop(show_bicycle)=false][name][highway=path][bicycle=designated][foot=designated],
     380way[prop(show_bicycle)=false][name][highway=path][bicycle=official][foot=official],
     381way[prop(show_bicycle)=false][name][highway=cycleway][foot=yes],
     382way[prop(show_bicycle)=false][name][highway=path][bicycle=designated][foot=yes],
     383way[prop(show_bicycle)=false][name][highway=path][bicycle=official][foot=yes],
     384way[prop(show_bicycle)=false][name][highway=footway][bicycle=yes],
     385way[prop(show_bicycle)=false][name][highway=path][bicycle=yes][foot=designated],
     386way[prop(show_bicycle)=false][name][highway=path][bicycle=yes][foot=official]
     387{
     388        dashes: none;
     389}
     390
     391/* ------------------------------------------------------------------------------------------------------------------------ */
     392/* ------------------------------------------------------------------------------------------------------------------------ */
    365393/* ------------------------------------------------------------------------------------------------------------------------ */
    366394
     
    386414}
    387415                /* address nodes */
    388 
    389416node|z17-["addr:street"]::halo,
    390417node|z17-["addr:place"]::halo,
     
    673700        text-halo-color: #6b8e23;
    674701}
    675 way["highway"]["name"][prop(crc)>=1818][prop(crc)<2121] 
     702way["highway"]["name"][prop(crc)>=1818][prop(crc)<2121]
    676703{
    677704        color: #6b8e23;
     
    717744        text-halo-color: #7fffd4;
    718745}
    719 way["highway"]["name"][prop(crc)>=2424][prop(crc)<2727] 
     746way["highway"]["name"][prop(crc)>=2424][prop(crc)<2727]
    720747{
    721748        color: #7fffd4;
     
    761788        text-halo-color: #a52a2a;
    762789}
    763 way["highway"]["name"][prop(crc)>=3030][prop(crc)<3333] 
     790way["highway"]["name"][prop(crc)>=3030][prop(crc)<3333]
    764791{
    765792        color: #a52a2a;
     
    783810        text-halo-color: #f0b9a6;
    784811}
    785 way["highway"]["name"][prop(crc)>=3333][prop(crc)<3636] 
     812way["highway"]["name"][prop(crc)>=3333][prop(crc)<3636]
    786813{
    787814        color: #f0b9a6;
     
    805832        text-halo-color: #8fbc8f;
    806833}
    807 way["highway"]["name"][prop(crc)>=3636][prop(crc)<3939] 
     834way["highway"]["name"][prop(crc)>=3636][prop(crc)<3939]
    808835{
    809836        color: #8fbc8f;
     
    827854        text-halo-color: #1b7777;
    828855}
    829 way["highway"]["name"][prop(crc)>=3939][prop(crc)<4242] 
     856way["highway"]["name"][prop(crc)>=3939][prop(crc)<4242]
    830857{
    831858        color: #1b7777;
     
    849876        text-halo-color: #ff1493;
    850877}
    851 way["highway"]["name"][prop(crc)>=4242][prop(crc)<4545] 
     878way["highway"]["name"][prop(crc)>=4242][prop(crc)<4545]
    852879{
    853880        color: #ff1493;
     
    871898        text-halo-color: #0072e2;
    872899}
    873 way["highway"]["name"][prop(crc)>=4545][prop(crc)<4848] 
     900way["highway"]["name"][prop(crc)>=4545][prop(crc)<4848]
    874901{
    875902        color: #0072e2;
     
    893920        text-halo-color: #008f00;
    894921}
    895 way["highway"]["name"][prop(crc)>=4848][prop(crc)<5151] 
     922way["highway"]["name"][prop(crc)>=4848][prop(crc)<5151]
    896923{
    897924        color: #008f00;
     
    915942        text-halo-color: #ffcc00;
    916943}
    917 way["highway"]["name"][prop(crc)>=5151][prop(crc)<5454] 
     944way["highway"]["name"][prop(crc)>=5151][prop(crc)<5454]
    918945{
    919946        color: #ffcc00;
     
    959986        text-halo-color: #adff2f;
    960987}
    961 way["highway"]["name"][prop(crc)>=5757][prop(crc)<6060] 
     988way["highway"]["name"][prop(crc)>=5757][prop(crc)<6060]
    962989{
    963990        color: #adff2f;
     
    9811008        text-halo-color: #ff69b4;
    9821009}
    983 way["highway"]["name"][prop(crc)>=6060][prop(crc)<6363] 
     1010way["highway"]["name"][prop(crc)>=6060][prop(crc)<6363]
    9841011{
    9851012        color: #ff69b4;
     
    10251052        text-halo-color: #7d5a07;
    10261053}
    1027 way["highway"]["name"][prop(crc)>=6666][prop(crc)<6969] 
     1054way["highway"]["name"][prop(crc)>=6666][prop(crc)<6969]
    10281055{
    10291056        color: #7d5a07;
     
    10471074        text-halo-color: #824600;
    10481075}
    1049 way["highway"]["name"][prop(crc)>=6969][prop(crc)<7272] 
     1076way["highway"]["name"][prop(crc)>=6969][prop(crc)<7272]
    10501077{
    10511078        color: #824600;
     
    10691096        text-halo-color: #f08080;
    10701097}
    1071 way["highway"]["name"][prop(crc)>=7272][prop(crc)<7575] 
     1098way["highway"]["name"][prop(crc)>=7272][prop(crc)<7575]
    10721099{
    10731100        color: #f08080;
     
    10911118        text-halo-color: #F75617;
    10921119}
    1093 way["highway"]["name"][prop(crc)>=7575][prop(crc)<7878] 
     1120way["highway"]["name"][prop(crc)>=7575][prop(crc)<7878]
    10941121{
    10951122        color: #F75617;
     
    11131140        text-halo-color: #54d954;
    11141141}
    1115 way["highway"]["name"][prop(crc)>=7878][prop(crc)<8181] 
     1142way["highway"]["name"][prop(crc)>=7878][prop(crc)<8181]
    11161143{
    11171144        color: #54d954;
     
    11351162        text-halo-color: #ba55d3;
    11361163}
    1137 way["highway"]["name"][prop(crc)>=8181][prop(crc)<8484] 
     1164way["highway"]["name"][prop(crc)>=8181][prop(crc)<8484]
    11381165{
    11391166        color: #ba55d3;
     
    11571184        text-halo-color: #9370db;
    11581185}
    1159 way["highway"]["name"][prop(crc)>=8484][prop(crc)<8787] 
     1186way["highway"]["name"][prop(crc)>=8484][prop(crc)<8787]
    11601187{
    11611188        color: #9370db;
     
    11791206        text-halo-color: #ff7c00;
    11801207}
    1181 way["highway"]["name"][prop(crc)>=8787][prop(crc)<9090] 
     1208way["highway"]["name"][prop(crc)>=8787][prop(crc)<9090]
    11821209{
    11831210        color: #ff7c00;
     
    12011228        text-halo-color: #3cb371;
    12021229}
    1203 way["highway"]["name"][prop(crc)>=9090][prop(crc)<9393] 
     1230way["highway"]["name"][prop(crc)>=9090][prop(crc)<9393]
    12041231{
    12051232        color: #3cb371;
     
    12241251
    12251252}
    1226 way["highway"]["name"][prop(crc)>=9393][prop(crc)<9696] 
     1253way["highway"]["name"][prop(crc)>=9393][prop(crc)<9696]
    12271254{
    12281255        color: #707000;
     
    12521279}
    12531280
     1281/* ------------------------------------------------------------------------------------------------------------------------ */
     1282/* ------------------------------------------------------------------------------------------------------------------------ */
    12541283/* ------------------------------------------------------------------------------------------------------------------------ */
    12551284
     
    13241353        /* street with addr:*=* */
    13251354way["highway"]["addr:country"],
    1326 way["highway"]["addr:postcode"][!prop(style_allow_postcode_on_highway)],
     1355way["highway"]["addr:postcode"][prop(allow_postcode)=false],
    13271356way["highway"]["addr:city"],
    13281357way["highway"]["addr:street"],
     
    13381367        text-halo-color: red;
    13391368        text-halo-radius: 2;
    1340 
    13411369}
    13421370
     
    13611389}
    13621390
    1363 
    13641391        /* names of nodes */
    13651392node["addr:housenumber"]
     
    14011428        font-size: 12;
    14021429        text-position: center;
    1403 
    14041430}
    14051431
     
    14271453        dashes: 20,4;
    14281454        dashes-background-color: #FFFF00;
    1429        
    14301455}
    14311456}}}