Changes between Version 7 and Version 8 of Styles/DiscGolfCourse
- Timestamp:
- 2024-03-21T11:28:50+01:00 (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/DiscGolfCourse
v7 v8 9 9 The style tries to catch common mapping pitfalls as found on https://wiki.openstreetmap.org/wiki/Tag:leisure%3Ddisc_golf_course 10 10 11 - Using disc_golf=pin instead of disc_golf=basket.12 - Using golf=*anywhere on a disc golf course13 - Using ref=*somewhere else than on hole.14 - Using name=* on every hole instad or additionally to ref=*to force a rendering. (https://wiki.openstreetmap.org/wiki/Tagging_for_the_renderer)15 - Using landuse=* or natural=* to indicate its surface. Use surface=*instead.11 - Using `disc_golf=pin` instead of `disc_golf=basket`. 12 - Using `golf=*` anywhere on a disc golf course 13 - Using `ref=*` somewhere else than on hole. 14 - Using `name=*` on every hole instead or additionally to `ref=*` to force a rendering. (https://wiki.openstreetmap.org/wiki/Tagging_for_the_renderer) 15 - Using `landuse=*` or `natural=*` to indicate its surface. Use `surface=*` instead. 16 16 17 17 === User Settings === 18 18 19 The check if golf=* is usedcan be deactivated through the mappaint settings (ALT-SHIFT-M and in the sidebar right-click on the style)19 The check if `golf=*` is used anywhere can be deactivated through the mappaint settings (ALT-SHIFT-M and in the sidebar right-click on the style) 20 20 21 21 === Suggestions possible at === … … 64 64 65 65 node[disc_golf=tee]{ 66 67 68 69 70 66 icon-image: "tee.svg"; 67 icon-width: 75; 68 icon-offset-x: 10; 69 symbol-stroke-color: #FFC800; 70 text: auto; 71 71 } 72 72 73 73 node[disc_golf=basket]{ 74 75 76 77 78 74 icon-image: "basket2.svg"; 75 icon-width: 50; 76 icon-offset-y: -28; 77 icon-offset-x: 1; 78 text: auto; 79 79 } 80 80 81 81 way[disc_golf=hole]{ 82 83 84 85 86 87 88 89 90 91 92 93 82 text: "ref"; 83 font-size: 20; 84 width: 25; 85 opacity: 0.2; 86 left-casing-color: black; 87 left-casing-width: 2; 88 left-casing-dashes: 0; 89 left-casing-opacity: 0.7; 90 right-casing-color: black; 91 right-casing-width: 2; 92 right-casing-opacity: 0.7; 93 right-casing-dashes: 0; 94 94 } 95 95 96 96 node[disc_golf=drop_zone]{ 97 98 99 100 101 102 103 104 97 text: eval("DZ"); 98 text-color: orange; 99 font-size: 10; 100 casing-width: 10; 101 symbol-size: 20; 102 symbol-shape: circle; 103 symbol-fill-color: orange; 104 symbol-fill-opacity: 0.5; 105 105 } 106 106 107 107 /* If mando is tagged to an existing node like natural=tree, it will not get rendered */ 108 108 /* But the text will appear next to it */ 109 node[disc_golf=mando]{ 110 text: eval("Mando"); 111 text-color: red; 112 font-weight: bold; 113 font-size: 15; 114 symbol-size: 20; 115 symbol-shape: triangle; 116 symbol-fill-color: red; 117 symbol-fill-opacity: 0.5; 109 *[disc_golf=mando]{ 110 color: red; 111 width: 5; 112 opacity: 0.8; 113 text: eval("Mando"); 114 text-color: red; 115 font-weight: bold; 116 font-size: 15; 117 symbol-size: 20; 118 symbol-shape: triangle; 119 symbol-fill-color: red; 120 symbol-fill-opacity: 0.5; 121 } 122 123 /* If mando is a way, offset the text */ 124 way[disc_golf=mando]{ 125 text-offset-y: 10; 118 126 } 119 127 120 128 area[disc_golf=out_of_bounds]{ 121 fill-color: red; 122 text: eval("OB"); 123 text-color: red; 124 font-weight: bold; 125 font-size: 15; 126 /*text-halo-color: black;*/ 129 fill-color: red; 130 text: eval("OB"); 131 text-color: red; 132 font-weight: bold; 133 font-size: 15; 127 134 } 128 135 … … 133 140 /* ************** disc_golf=pin instead of basket */ 134 141 node[disc_golf=pin]{ 135 136 137 138 139 140 141 142 143 144 145 142 text: eval("Use basket"); 143 text-color: purple; 144 font-size: 20; 145 font-weight: bold; 146 color: purple; 147 width: 30; 148 opacity: 1; 149 dashes: 0; 150 symbol-size: 40; 151 symbol-shape: circle; 152 symbol-fill-color: purple; 146 153 } 147 154 148 155 /* ************** Catch a name on an hole */ 149 156 way[disc_golf=hole][name]{ 150 151 152 153 154 157 text: eval("NO NAME ON HOLE"); 158 text-color: purple; 159 font-size: 20; 160 font-weight: bold; 161 text-offset-y: 30; 155 162 } 156 163 157 164 /* ************** Catch everything tagged with golf=* */ 158 165 *[golf][setting("using_golf")]{ 159 160 161 162 163 164 165 166 color: purple; 167 width: 30; 168 opacity: 1; 169 dashes: 0; 170 symbol-size: 40; 171 symbol-shape: circle; 172 symbol-fill-color: purple; 166 173 } 167 174