Changes between Initial Version and Version 1 of Styles/HighwayAreas


Ignore:
Timestamp:
2023-07-26T23:11:10+02:00 (3 years ago)
Author:
Supaplex030
Comment:

Added area:highway style

Legend:

Unmodified
Added
Removed
Modified
  • Styles/HighwayAreas

    v1 v1  
     1This style provides visual support for mapping highway areas ([https://wiki.openstreetmap.org/wiki/Key:area:highway area:highway]).
     2
     3Some features: Colored highway areas by highway category/type of area, pattern for junctions, colored casing, depending on surface, colored street parking areas (see also on [https://github.com/SupaplexOSM/JOSM-area-highway-Style GitHub]).
     4
     5{{{
     6#!style type="mapcss"
     7
     8meta {
     9    title: "Highway areas";
     10    description: "Visual support for mapping highway areas (area:highway).";
     11    link: "https://wiki.openstreetmap.org/wiki/Key:area:highway";
     12    icon: "area_highway.png";
     13    author: "Alex Seidel (Supaplex030)";
     14    version: "1.[[revision]]_[[date]]";
     15    min-josm-version: "11700";
     16}
     17
     18meta[lang=de]
     19{
     20    title: "Straßenflächen";
     21    description: "Visuelle Unterstützung bei der Kartierung von Straßenflächen (area:highway).";
     22}
     23
     24/* default/backup filling */
     25area[area:highway]
     26{
     27    fill-opacity: 0.4;
     28    fill-color: #000000;
     29    fill-extent: 50;
     30}
     31
     32/* ------------------------------------------------------------ */
     33/* Fill highway areas with color, depending on highway category */
     34/* ------------------------------------------------------------ */
     35
     36area[area:highway=primary],
     37area[area:highway=primary_link]
     38{
     39    fill-color: #FF6633;
     40}
     41
     42area[area:highway=secondary],
     43area[area:highway=secondary_link]
     44{
     45    fill-color: #FF9966;
     46}
     47
     48area[area:highway=tertiary],
     49area[area:highway=tertiary_link]
     50{
     51    fill-color: #FFFF99;
     52}
     53
     54area[area:highway=residential],
     55area[area:highway=unclassified],
     56area[area:highway=road]
     57{
     58    fill-color: white;
     59}
     60
     61area[area:highway=living_street],
     62area[area:highway=turning_circle]
     63{
     64    fill-color: #C8C8FF;
     65}
     66
     67area[area:highway=service]
     68{
     69    fill-color: #808080;
     70}
     71
     72area[area:highway=pedestrian],
     73area[area:highway=footway],
     74area[area:highway=path]
     75{
     76    fill-color: #FFFF55;
     77    fill-opacity: 0.5;
     78}
     79
     80area[area:highway=cycleway]
     81{
     82    fill-color: #745CEF;
     83    fill-opacity: 0.5;
     84}
     85
     86/* ---------------------------------------------------- */
     87/* Casing on inside of highway areas colored by surface */
     88/* ---------------------------------------------------- */
     89
     90area[area:highway]:clockwise
     91{
     92    right-casing-width: 10;
     93    right-casing-color: gray;
     94    right-casing-opacity: 0.3;
     95}
     96
     97area[area:highway]:anticlockwise
     98{
     99    left-casing-width: 10;
     100    left-casing-color: gray;
     101    left-casing-opacity: 0.3;
     102}
     103
     104area[area:highway][!surface]
     105{
     106    left-casing-width: 0;
     107    right-casing-width: 0;
     108}
     109
     110area[area:highway][surface=asphalt],
     111area[area:highway][surface=paved]
     112{
     113    left-casing-color: black;
     114    right-casing-color: black;
     115}
     116
     117area[area:highway][surface=sett],
     118area[area:highway][surface=cobblestone],
     119area[area:highway][surface=unhewn_cobblestone]
     120{
     121    left-casing-color: navy;
     122    right-casing-color: navy;
     123}
     124
     125area[area:highway][surface=paving_stones]
     126{
     127    left-casing-color: orange;
     128    right-casing-color: orange;
     129}
     130
     131area[area:highway][surface=concrete],
     132area[area:highway][surface="concrete:plates"],
     133area[area:highway][surface="concrete:lanes"]
     134{
     135    left-casing-color: maroon;
     136    right-casing-color: maroon;
     137}
     138
     139area[area:highway][surface=grass],
     140area[area:highway][surface=grass_paver]
     141{
     142    left-casing-color: green;
     143    right-casing-color: green;
     144}
     145
     146/* -------------------------------------- */
     147/* Some color options for specific areas */
     148/* -------------------------------------- */
     149
     150area[area:highway=traffic_island]
     151{
     152    fill-color: gray;
     153    fill-opacity: 0.8;
     154    right-casing-width: 0;
     155    left-casing-width: 0;
     156}
     157
     158area[area:highway=prohibited]
     159{
     160    fill-color: white;
     161    fill-opacity: 0.3;
     162    right-casing-width: 0;
     163    left-casing-width: 0;
     164}
     165
     166area[amenity=parking][parking=lane],
     167area[amenity=parking][parking=street_side],
     168area[amenity=parking][parking=on_kerb],
     169area[amenity=parking][parking=half_on_kerb],
     170area[amenity=parking][parking=shoulder]
     171{
     172    fill-opacity: 0.4;
     173    fill-color: #7D3C98;
     174    fill-extent: 50;
     175}
     176
     177/* ----------------------------------- */
     178/* Fill junctions with striped pattern */
     179/* ----------------------------------- */
     180
     181area[area:highway][junction=yes][area:highway=primary],
     182area[area:highway][junction=yes][area:highway=primary_link]
     183{
     184    fill-image: images/stripe_texture_FF6633.svg;
     185}
     186
     187area[area:highway][junction=yes][area:highway=secondary],
     188area[area:highway][junction=yes][area:highway=secondary_link]
     189{
     190    fill-image: images/stripe_texture_FF9966.svg;
     191}
     192
     193area[area:highway][junction=yes][area:highway=tertiary],
     194area[area:highway][junction=yes][area:highway=tertiary_link]
     195{
     196    fill-image: images/stripe_texture_FFFF99.svg;
     197}
     198
     199area[area:highway][junction=yes][area:highway=residential],
     200area[area:highway][junction=yes][area:highway=unclassified],
     201area[area:highway][junction=yes][area:highway=road]
     202{
     203    fill-image: images/stripe_texture_white.svg;
     204}
     205
     206area[area:highway][junction=yes][area:highway=living_street],
     207area[area:highway][junction=yes][area:highway=turning_circle]
     208{
     209    fill-image: images/stripe_texture_C8C8FF.svg;
     210}
     211
     212area[area:highway][junction=yes][area:highway=pedestrian],
     213area[area:highway][junction=yes][area:highway=footway],
     214area[area:highway][junction=yes][area:highway=path]
     215{
     216    fill-image: images/stripe_texture_FFFF55.svg;
     217}
     218
     219area[area:highway][junction=yes][area:highway=cycleway]
     220{
     221    fill-image: images/stripe_texture_745CEF.svg;
     222}
     223
     224}}}