Changes between Initial Version and Version 1 of Styles/DiscGolfCourse


Ignore:
Timestamp:
2024-03-19T15:26:46+01:00 (22 months ago)
Author:
negreheb
Comment:

Initial page

Legend:

Unmodified
Added
Removed
Modified
  • Styles/DiscGolfCourse

    v1 v1  
     1= Disc Golf Course =
     2
     3== Description ==
     4
     5I 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.
     6
     7Suggestions possible at:
     8
     9- https://community.openstreetmap.org/t/custom-map-style-for-josm-for-disc-golf-course/110688
     10- https://matrix.to/#/#osm-at:matrix.org
     11- https://www.openstreetmap.org/user/Negreheb
     12
     13== Code ==
     14
     15{{{
     16#!style type="mapcss"
     17
     18meta {
     19    title: "Disc Golf Course";
     20    version: "0.[[revision]]_[[date]]";
     21    description: "Colouring and icons for a Disc Golf Course to make mapping it easier. Makes working with addresses a lot easier. Check out the linked page to read how to change some settings of this mappaint style.";
     22    icon: "DiscGolfCourseIcon.svg";
     23    author: "Negreheb";
     24    link: "https://josm.openstreetmap.de/wiki/Styles/Disc_Golf_Course";
     25    min-josm-version: "8087"; /* due to @supports */
     26    /* This mapcss mappaint style was created for JOSM 8087. I try to support future versions of JOSM and its internal default mappaint style as long as possible. */
     27}
     28
     29meta[lang=de] {
     30    title: "Disc Golf Course";
     31    description: "Einfärben und Symbole für einen Disc-Golf-Platz, um die Zuordnung zu erleichtern. Das macht die Arbeit mit Adressen viel einfacher. Schau dir die verlinkte Seite an, um zu lesen, wie man einige Einstellungen dieses MapMaint-Stils ändert.";
     32    link: "https://josm.openstreetmap.de/wiki/De:Styles/Disc_Golf_Course";
     33}
     34
     35/* ------------------------------------------------------------------------------------------------------------------------ */
     36/* ------------------------------------------------------------------------------------------------------------------------ */
     37/* ------------------------------------------------------------------------------------------------------------------------ */
     38
     39
     40/**********************************************/
     41/*                            General setting */
     42/**********************************************/
     43
     44node[disc_golf=tee]{
     45        icon-image: "tee.svg";
     46        icon-width: 75;
     47        icon-offset-x: 10;
     48        symbol-stroke-color: #FFC800;
     49        text: auto;
     50}
     51
     52node[disc_golf=basket]{
     53        icon-image: "basket2.svg";
     54        icon-width: 50;
     55        icon-offset-y: -28;
     56        icon-offset-x: 1;
     57        text: auto;
     58}
     59
     60way[disc_golf=hole]{
     61        text: "ref";
     62        font-size: 20;
     63        /*text-offset: 9; */
     64        width: 30;
     65        opacity: 0.4;
     66        /*casing-color: #808080;*/
     67        z-index: 110;
     68        left-casing-color:black;
     69        left-casing-width:2;
     70        left-casing-dashes:0;
     71        left-casing-opacity:0;
     72        right-casing-color:black;
     73        right-casing-width:2;
     74        right-casing-opacity:0;
     75        right-casing-dashes:0;
     76}
     77
     78node[disc_golf=drop_zone]{
     79        text: eval("DZ");
     80        text-color: orange;
     81        font-size: 10;
     82        casing-width: 10;
     83        /*symbol-size: 20;
     84        symbol-shape: circle;
     85        symbol-fill-color: orange;
     86        symbol-fill-opacity: 0.5;*/
     87}
     88
     89node[disc_golf=mando]{
     90        text: eval("Mando");
     91        text-color: red;
     92        font-weight: bold;
     93        font-size: 10;
     94        symbol-size: 20;
     95        symbol-shape: triangle;
     96        symbol-fill-color: red;
     97        symbol-fill-opacity: 0.5;       
     98}
     99
     100area[disc_golf=out_of_bounds]{
     101        fill-color: red;
     102        text: eval("OB");
     103        font-size: 15;
     104        font-weight: bold;
     105        text-color: red;
     106        text-halo-color: black;
     107}
     108
     109}}}