Changes between Version 4 and Version 5 of Styles/DiscGolfCourse
- Timestamp:
- 2024-03-20T08:50:26+01:00 (22 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/DiscGolfCourse
v4 v5 3 3 == Description == 4 4 5 I made this style to simplify tagging of disc golf courses in JOSM. With this style, mapping tees, baskets, holes, and o hter 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.5 I 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. 6 6 7 Suggestions possible at: 7 The 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 === 8 15 9 16 - https://community.openstreetmap.org/t/custom-map-style-for-josm-for-disc-golf-course/110688 … … 17 24 18 25 meta { 19 title: "Disc Golf Course"; 26 title: "Disc Golf Course Testing"; 20 27 version: "0.[[revision]]_[[date]]"; 21 28 description: "Colouring and icons for a Disc Golf Course to make mapping it easier."; 22 icon: "DiscGolfCourseIcon.svg";29 icon:"DiscGolfCourse.svg"; 23 30 author: "Negreheb"; 24 31 link: "https://josm.openstreetmap.de/wiki/Styles/DiscGolfCourse"; … … 82 89 } 83 90 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 */ 84 93 node[disc_golf=mando]{ 85 94 text: eval("Mando"); 86 95 text-color: red; 87 96 font-weight: bold; 88 font-size: 1 0;89 symbol-size: 20;97 font-size: 15; 98 symbol-size: 20; 90 99 symbol-shape: triangle; 91 100 symbol-fill-color: red; 92 symbol-fill-opacity: 0.5; 101 symbol-fill-opacity: 0.5; 93 102 } 94 103 … … 96 105 fill-color: red; 97 106 text: eval("OB"); 98 font-size: 15;107 text-color: red; 99 108 font-weight: bold; 100 text-color: red;109 font-size: 15; 101 110 /*text-halo-color: black;*/ 102 111 } 103 112 113 /**********************************************/ 114 /* Common pitfalls */ 115 /**********************************************/ 116 117 /* ************** disc_golf=pin instead of basket */ 118 node[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 */ 133 way[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 104 152 }}}
