Changes between Version 7 and Version 8 of Styles/DiscGolfCourse


Ignore:
Timestamp:
2024-03-21T11:28:50+01:00 (3 months ago)
Author:
negreheb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/DiscGolfCourse

    v7 v8  
    99The style tries to catch common mapping pitfalls as found on https://wiki.openstreetmap.org/wiki/Tag:leisure%3Ddisc_golf_course
    1010
    11 - Using disc_golf=pin instead of disc_golf=basket.
    12 - Using golf=* anywhere on a disc golf course
    13 - Using ref=* somewhere else than on hole.
    14 - Using name=* on every hole instad or additionally to ref=* to force a rendering. (https://wiki.openstreetmap.org/wiki/Tagging_for_the_renderer)
    15 - Using landuse=* or natural=* to indicate its surface. Use surface=* instead.
     11- Using `disc_golf=pin` instead of `disc_golf=basket`.
     12- Using `golf=*` anywhere on a disc golf course
     13- Using `ref=*` somewhere else than on hole.
     14- Using `name=*` on every hole instead or additionally to `ref=*` to force a rendering. (https://wiki.openstreetmap.org/wiki/Tagging_for_the_renderer)
     15- Using `landuse=*` or `natural=*` to indicate its surface. Use `surface=*` instead.
    1616
    1717=== User Settings ===
    1818
    19 The check if golf=* is used can be deactivated through the mappaint settings (ALT-SHIFT-M and in the sidebar right-click on the style)
     19The check if `golf=*` is used anywhere can be deactivated through the mappaint settings (ALT-SHIFT-M and in the sidebar right-click on the style)
    2020
    2121=== Suggestions possible at ===
     
    6464
    6565node[disc_golf=tee]{
    66         icon-image: "tee.svg";
    67         icon-width: 75;
    68         icon-offset-x: 10;
    69         symbol-stroke-color: #FFC800;
    70         text: auto;
     66    icon-image: "tee.svg";
     67    icon-width: 75;
     68    icon-offset-x: 10;
     69    symbol-stroke-color: #FFC800;
     70    text: auto;
    7171}
    7272
    7373node[disc_golf=basket]{
    74         icon-image: "basket2.svg";
    75         icon-width: 50;
    76         icon-offset-y: -28;
    77         icon-offset-x: 1;
    78         text: auto;
     74    icon-image: "basket2.svg";
     75    icon-width: 50;
     76    icon-offset-y: -28;
     77    icon-offset-x: 1;
     78    text: auto;
    7979}
    8080
    8181way[disc_golf=hole]{
    82         text: "ref";
    83         font-size: 20;
    84         width: 25;
    85         opacity: 0.2;
    86         left-casing-color: black;
    87         left-casing-width: 2;
    88         left-casing-dashes: 0;
    89         left-casing-opacity: 0.7;
    90         right-casing-color: black;
    91         right-casing-width: 2;
    92         right-casing-opacity: 0.7;
    93         right-casing-dashes: 0;
     82    text: "ref";
     83    font-size: 20;
     84    width: 25;
     85    opacity: 0.2;
     86    left-casing-color: black;
     87    left-casing-width: 2;
     88    left-casing-dashes: 0;
     89    left-casing-opacity: 0.7;
     90    right-casing-color: black;
     91    right-casing-width: 2;
     92    right-casing-opacity: 0.7;
     93    right-casing-dashes: 0;
    9494}
    9595
    9696node[disc_golf=drop_zone]{
    97         text: eval("DZ");
    98         text-color: orange;
    99         font-size: 10;
    100         casing-width: 10;
    101         symbol-size: 20;
    102         symbol-shape: circle;
    103         symbol-fill-color: orange;
    104         symbol-fill-opacity: 0.5;
     97    text: eval("DZ");
     98    text-color: orange;
     99    font-size: 10;
     100    casing-width: 10;
     101    symbol-size: 20;
     102    symbol-shape: circle;
     103    symbol-fill-color: orange;
     104    symbol-fill-opacity: 0.5;
    105105}
    106106
    107107/* If mando is tagged to an existing node like natural=tree, it will not get rendered */
    108108/* But the text will appear next to it */
    109 node[disc_golf=mando]{
    110         text: eval("Mando");
    111         text-color: red;
    112         font-weight: bold;
    113         font-size: 15;
    114                 symbol-size: 20;
    115         symbol-shape: triangle;
    116         symbol-fill-color: red;
    117         symbol-fill-opacity: 0.5;
     109*[disc_golf=mando]{
     110    color: red;
     111        width: 5;
     112        opacity: 0.8;
     113        text: eval("Mando");
     114    text-color: red;
     115    font-weight: bold;
     116    font-size: 15;
     117    symbol-size: 20;
     118    symbol-shape: triangle;
     119    symbol-fill-color: red;
     120    symbol-fill-opacity: 0.5;
     121}
     122
     123/* If mando is a way, offset the text */
     124way[disc_golf=mando]{
     125        text-offset-y: 10;
    118126}
    119127
    120128area[disc_golf=out_of_bounds]{
    121         fill-color: red;
    122         text: eval("OB");
    123                 text-color: red;
    124         font-weight: bold;
    125                 font-size: 15;
    126         /*text-halo-color: black;*/
     129    fill-color: red;
     130    text: eval("OB");
     131    text-color: red;
     132    font-weight: bold;
     133    font-size: 15;
    127134}
    128135
     
    133140/* ************** disc_golf=pin instead of basket */
    134141node[disc_golf=pin]{
    135         text: eval("Use basket");
    136         text-color: purple;
    137         font-size: 20;
    138         font-weight: bold;
    139         color: purple;
    140         width: 30;
    141         opacity: 1;
    142         dashes: 0;
    143         symbol-size: 40;
    144         symbol-shape: circle;
    145         symbol-fill-color: purple;
     142    text: eval("Use basket");
     143    text-color: purple;
     144    font-size: 20;
     145    font-weight: bold;
     146    color: purple;
     147    width: 30;
     148    opacity: 1;
     149    dashes: 0;
     150    symbol-size: 40;
     151    symbol-shape: circle;
     152    symbol-fill-color: purple;
    146153}
    147154
    148155/* ************** Catch a name on an hole */
    149156way[disc_golf=hole][name]{
    150         text: eval("NO NAME ON HOLE");
    151         text-color: purple;
    152         font-size: 20;
    153                 font-weight: bold;
    154                 text-offset-y: 30;
     157    text: eval("NO NAME ON HOLE");
     158    text-color: purple;
     159    font-size: 20;
     160    font-weight: bold;
     161    text-offset-y: 30;
    155162}
    156163
    157164/* ************** Catch everything tagged with golf=* */
    158165*[golf][setting("using_golf")]{
    159         color: purple;
    160         width: 30;
    161         opacity: 1;
    162         dashes: 0;
    163         symbol-size: 40;
    164         symbol-shape: circle;
    165         symbol-fill-color: purple;
     166    color: purple;
     167    width: 30;
     168    opacity: 1;
     169    dashes: 0;
     170    symbol-size: 40;
     171    symbol-shape: circle;
     172    symbol-fill-color: purple;
    166173}
    167174