Changes between Version 4 and Version 5 of Styles/DiscGolfCourse


Ignore:
Timestamp:
2024-03-20T08:50:26+01:00 (22 months ago)
Author:
negreheb
Comment:

Added the common errors

Legend:

Unmodified
Added
Removed
Modified
  • Styles/DiscGolfCourse

    v4 v5  
    33== Description ==
    44
    5 I made this style to simplify tagging of disc golf courses in JOSM. With this style, mapping tees, baskets, holes, and ohter elements of a disc gold course become more intuitive and efficient. The clear visual representation and use of symbols and colors hopefully makes mapping easier.
     5I made this style to simplify tagging of disc golf courses in JOSM. With this style, mapping tees, baskets, holes, and other elements of a disc gold course become more intuitive and efficient. The clear visual representation and use of symbols and colors hopefully makes mapping easier.
    66
    7 Suggestions possible at:
     7The style tries to catch common mapping pitfalls as found on https://wiki.openstreetmap.org/wiki/Tag:leisure%3Ddisc_golf_course
     8
     9- Using disc_golf=pin instead of disc_golf=basket.
     10- Using ref=* somewhere else than on hole.
     11- Using name=* on every hole instad or additionally to ref=* to force a rendering. (https://wiki.openstreetmap.org/wiki/Tagging_for_the_renderer)
     12- Using landuse=* or natural=* to indicate its surface. Use surface=* instead.
     13
     14=== Suggestions possible at ===
    815
    916- https://community.openstreetmap.org/t/custom-map-style-for-josm-for-disc-golf-course/110688
     
    1724
    1825meta {
    19     title: "Disc Golf Course";
     26    title: "Disc Golf Course Testing";
    2027    version: "0.[[revision]]_[[date]]";
    2128    description: "Colouring and icons for a Disc Golf Course to make mapping it easier.";
    22     icon: "DiscGolfCourseIcon.svg";
     29    icon:"DiscGolfCourse.svg";
    2330    author: "Negreheb";
    2431    link: "https://josm.openstreetmap.de/wiki/Styles/DiscGolfCourse";
     
    8289}
    8390
     91/* If mando is tagged to an existing node like natural=tree, it will not get rendered */
     92/* But the text will appear next to it */
    8493node[disc_golf=mando]{
    8594        text: eval("Mando");
    8695        text-color: red;
    8796        font-weight: bold;
    88         font-size: 10;
    89         symbol-size: 20;
     97        font-size: 15;
     98                symbol-size: 20;
    9099        symbol-shape: triangle;
    91100        symbol-fill-color: red;
    92         symbol-fill-opacity: 0.5;       
     101        symbol-fill-opacity: 0.5;
    93102}
    94103
     
    96105        fill-color: red;
    97106        text: eval("OB");
    98         font-size: 15;
     107                text-color: red;
    99108        font-weight: bold;
    100         text-color: red;
     109                font-size: 15;
    101110        /*text-halo-color: black;*/
    102111}
    103112
     113/**********************************************/
     114/*                            Common pitfalls */
     115/**********************************************/
     116
     117/* ************** disc_golf=pin instead of basket */
     118node[disc_golf=pin]{
     119        text: eval("Use basket");
     120        text-color: purple;
     121        font-size: 20;
     122        font-weight: bold;
     123        color: purple;
     124        width: 30;
     125        opacity: 1;
     126        dashes: 0;
     127        symbol-size: 40;
     128        symbol-shape: circle;
     129        symbol-fill-color: purple;
     130}
     131
     132/* ************** Catch a name on an hole */
     133way[disc_golf=hole][name]{
     134        text: eval("NO NAME ON HOLE");
     135        text-color: purple;
     136        font-size: 20;
     137                font-weight: bold;
     138                text-offset-y: 30;
     139}
     140
     141/* ************** Catch everything tagged with golf=* */
     142*[golf]{
     143        color: purple;
     144        width: 30;
     145        opacity: 1;
     146        dashes: 0;
     147        symbol-size: 40;
     148        symbol-shape: circle;
     149        symbol-fill-color: purple;
     150}
     151
    104152}}}