wiki:Styles/DiscGolfCourse

Version 4 (modified by negreheb, 3 months ago) ( diff )

--

Disc Golf Course

Description

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.

Suggestions possible at:

Code

meta {
    title: "Disc Golf Course";
    version: "0.8_2024-03-21";
    description: "Colouring and icons for a Disc Golf Course to make mapping it easier.";
    icon: "DiscGolfCourseIcon.svg";
    author: "Negreheb";
    link: "https://josm.openstreetmap.de/wiki/Styles/DiscGolfCourse";
}

meta[lang=de] {
    title: "Disc Golf Course";
    description: "Einfärbungen und Symbole für einen Disc-Golf-Kurs, um das Mappen zu erleichtern.";
    link: "https://josm.openstreetmap.de/wiki/De:Styles/DiscGolfCourse";
}

/* ------------------------------------------------------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------------------------------------------------------ */


/**********************************************/
/*                            General setting */
/**********************************************/

node[disc_golf=tee]{
        icon-image: "tee.svg";
        icon-width: 75;
        icon-offset-x: 10;
        symbol-stroke-color: #FFC800;
        text: auto;
}

node[disc_golf=basket]{
        icon-image: "basket2.svg";
        icon-width: 50;
        icon-offset-y: -28;
        icon-offset-x: 1;
        text: auto;
}

way[disc_golf=hole]{
        text: "ref";
        font-size: 20;
        width: 25;
        opacity: 0.2;
        left-casing-color: black;
        left-casing-width: 2;
        left-casing-dashes: 0;
        left-casing-opacity: 0.7;
        right-casing-color: black;
        right-casing-width: 2;
        right-casing-opacity: 0.7;
        right-casing-dashes: 0;
}

node[disc_golf=drop_zone]{
        text: eval("DZ");
        text-color: orange;
        font-size: 10;
        casing-width: 10;
        symbol-size: 20;
        symbol-shape: circle;
        symbol-fill-color: orange;
        symbol-fill-opacity: 0.5;
}

node[disc_golf=mando]{
        text: eval("Mando");
        text-color: red;
        font-weight: bold;
        font-size: 10;
        symbol-size: 20;
        symbol-shape: triangle;
        symbol-fill-color: red;
        symbol-fill-opacity: 0.5;       
}

area[disc_golf=out_of_bounds]{
        fill-color: red;
        text: eval("OB");
        font-size: 15;
        font-weight: bold;
        text-color: red;
        /*text-halo-color: black;*/
}

Styles_DiscGolfCourse-style.mapcss, Styles_DiscGolfCourse.zip

Attachments (4)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.