Changes between Version 6 and Version 7 of Styles/DiscGolfCourse


Ignore:
Timestamp:
2024-03-20T09:04:33+01:00 (3 months ago)
Author:
negreheb
Comment:

Added user setting and a example picture

Legend:

Unmodified
Added
Removed
Modified
  • Styles/DiscGolfCourse

    v6 v7  
    55I 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 golf course become more intuitive and efficient. The clear visual representation and use of symbols and colors hopefully makes mapping easier.
    66
     7[[Image(example.png)]]
     8
    79The style tries to catch common mapping pitfalls as found on https://wiki.openstreetmap.org/wiki/Tag:leisure%3Ddisc_golf_course
    810
    911- Using disc_golf=pin instead of disc_golf=basket.
     12- Using golf=* anywhere on a disc golf course
    1013- Using ref=* somewhere else than on hole.
    1114- Using name=* on every hole instad or additionally to ref=* to force a rendering. (https://wiki.openstreetmap.org/wiki/Tagging_for_the_renderer)
    1215- Using landuse=* or natural=* to indicate its surface. Use surface=* instead.
     16
     17=== User Settings ===
     18
     19The check if golf=* is used can be deactivated through the mappaint settings (ALT-SHIFT-M and in the sidebar right-click on the style)
    1320
    1421=== Suggestions possible at ===
     
    4249/* ------------------------------------------------------------------------------------------------------------------------ */
    4350
     51/**********************************************/
     52/*              Create mappaint user settings */
     53/**********************************************/
     54
     55setting::using_golf {
     56    type: boolean;
     57    label: tr("Check if golf=* is used at all");
     58    default: true;
     59}
    4460
    4561/**********************************************/
     
    140156
    141157/* ************** Catch everything tagged with golf=* */
    142 *[golf]{
     158*[golf][setting("using_golf")]{
    143159        color: purple;
    144160        width: 30;