| | 1 | [[TranslatedPages(revision=2)]] |
| | 2 | |
| | 3 | = [[JOSMImage(presets/misc/fixme,36,middle,inline)]] δόρθωσέ με και σημείωση = |
| | 4 | [[PageOutline(2-9)]] |
| | 5 | |
| | 6 | == Περιγραφή == |
| | 7 | |
| | 8 | Το στυλ βαφής χάρτη "δόρθωσέ με και σημείωση" επισημαίνει τις ετικέτες [osmwiki:Key:fixme δόρθωσέ με] και [osmwiki:Key:note σημείωση]. |
| | 9 | |
| | 10 | Μπορείτε να προσαρμόσετε τα χρώματα στο παράθυρο προτιμήσεων του JOSM. |
| | 11 | |
| | 12 | Μπορείτε να χρησιμοποιήσετε αυτό το στυλ χρωματισμού μαζί με το προεπιλεγμένο εσωτερικό στυλ χρωματισμού χάρτη του JOSM. |
| | 13 | |
| | 14 | Υπάρχουν 6 [wiki:Help/Dialog/MapPaint/StyleSettings ρυθμίσεις στυλ] για να απενεργοποιήσετε την εμφάνιση του δόρθωσέ με ή σημείωση για κόμβους, γραμμές ή περιοχές. |
| | 15 | |
| | 16 | Για ιδέες, ερωτήσεις, σφάλματα, προτάσεις ή παρόμοια, παρακαλώ στείλτε ένα μήνυμα στον [osmwww:user/Klumbumbus Klumbumbus]. |
| | 17 | |
| | 18 | == Κώδικας == |
| | 19 | {{{ |
| | 20 | #!style type="mapcss" |
| | 21 | |
| | 22 | meta { |
| | 23 | title: "fixme and note"; |
| | 24 | version: "1.0.[[revision]]_[[date]]"; |
| | 25 | description: "Displays fixme=* and note=* coloured."; |
| | 26 | icon: "presets/misc/fixme.svg"; |
| | 27 | author: "Klumbumbus"; |
| | 28 | link: "https://josm.openstreetmap.de/wiki/Styles/FixmeAndNote"; |
| | 29 | /* min-josm-version: "????"; all except very old JOSM versions */ |
| | 30 | } |
| | 31 | |
| | 32 | meta[lang=de] { |
| | 33 | title: "fixme und note"; |
| | 34 | description: "Zeigt fixme=* und note=* farbig an."; |
| | 35 | link: "https://josm.openstreetmap.de/wiki/Styles/FixmeAndNote"; |
| | 36 | } |
| | 37 | |
| | 38 | /* Create mappaint user settings. */ |
| | 39 | |
| | 40 | setting::fixme_on_nodes { |
| | 41 | type: boolean; |
| | 42 | label: tr("Display fixme on nodes"); |
| | 43 | default: true; |
| | 44 | } |
| | 45 | setting::fixme_on_ways { |
| | 46 | type: boolean; |
| | 47 | label: tr("Display fixme on ways"); |
| | 48 | default: true; |
| | 49 | } |
| | 50 | setting::fixme_on_areas { |
| | 51 | type: boolean; |
| | 52 | label: tr("Display fixme on areas"); |
| | 53 | default: true; |
| | 54 | } |
| | 55 | |
| | 56 | setting::note_on_nodes { |
| | 57 | type: boolean; |
| | 58 | label: tr("Display note on nodes"); |
| | 59 | default: true; |
| | 60 | } |
| | 61 | setting::note_on_ways { |
| | 62 | type: boolean; |
| | 63 | label: tr("Display note on ways"); |
| | 64 | default: true; |
| | 65 | } |
| | 66 | setting::note_on_areas { |
| | 67 | type: boolean; |
| | 68 | label: tr("Display note on areas"); |
| | 69 | default: true; |
| | 70 | } |
| | 71 | |
| | 72 | |
| | 73 | /* note */ |
| | 74 | |
| | 75 | node[note][setting("note_on_nodes")]::fixme_and_note_layer { |
| | 76 | text: note; |
| | 77 | font-size: 11; |
| | 78 | text-color: note_text#000000; |
| | 79 | text-halo-radius: 2; |
| | 80 | text-halo-color: note#FFFFFF; |
| | 81 | text-anchor-vertical: center; |
| | 82 | text-offset-y: 6; |
| | 83 | symbol-shape: circle; |
| | 84 | symbol-fill-color: note#FFFFFF; |
| | 85 | symbol-size: 10; |
| | 86 | symbol-stroke-color: note_text#000000; |
| | 87 | z-index: -1; |
| | 88 | } |
| | 89 | |
| | 90 | way!:closed[note][setting("note_on_ways")]::fixme_and_note_layer { |
| | 91 | width: 8; |
| | 92 | color: note#FFFFFF; |
| | 93 | major-z-index: -1; |
| | 94 | } |
| | 95 | |
| | 96 | way!:closed[note][setting("note_on_ways")] { |
| | 97 | text: note; |
| | 98 | text-color: note_text#000000; |
| | 99 | text-halo-radius: 2; |
| | 100 | text-halo-color: note#FFFFFF; |
| | 101 | font-size: 11; |
| | 102 | } |
| | 103 | |
| | 104 | area:closed[note][setting("note_on_areas")] > way::fixme_and_note_layer, |
| | 105 | way:closed[note][setting("note_on_areas")]::fixme_and_note_layer { |
| | 106 | width: 8; |
| | 107 | color: note#FFFFFF; |
| | 108 | major-z-index: -1; |
| | 109 | } |
| | 110 | |
| | 111 | area:closed[note][setting("note_on_areas")], |
| | 112 | way:closed[note][setting("note_on_areas")] { |
| | 113 | text: note; |
| | 114 | text-position: inside; |
| | 115 | text-color: note_text#000000; |
| | 116 | text-halo-radius: 2; |
| | 117 | text-halo-color: note#FFFFFF; |
| | 118 | font-size: 11; |
| | 119 | } |
| | 120 | |
| | 121 | |
| | 122 | /* fixme */ |
| | 123 | |
| | 124 | node[FIXME][setting("fixme_on_nodes")]::fixme_and_note_layer { |
| | 125 | text: tag("FIXME"); |
| | 126 | font-size: 11; |
| | 127 | text-color: fixme_text#000000; |
| | 128 | text-halo-radius: 2; |
| | 129 | text-halo-color: fixme#FF0000; |
| | 130 | text-anchor-vertical: center; |
| | 131 | text-offset-y: 6; |
| | 132 | symbol-shape: circle; |
| | 133 | symbol-fill-color: fixme#FF0000; |
| | 134 | symbol-size: 10; |
| | 135 | symbol-stroke-color: fixme_text#000000; |
| | 136 | z-index: -1; |
| | 137 | } |
| | 138 | node[fixme][setting("fixme_on_nodes")]::fixme_and_note_layer { |
| | 139 | text: fixme; |
| | 140 | font-size: 11; |
| | 141 | text-color: fixme_text#000000; |
| | 142 | text-halo-radius: 2; |
| | 143 | text-halo-color: fixme#FF0000; |
| | 144 | text-anchor-vertical: center; |
| | 145 | text-offset-y: 6; |
| | 146 | symbol-shape: circle; |
| | 147 | symbol-fill-color: fixme#FF0000; |
| | 148 | symbol-size: 10; |
| | 149 | symbol-stroke-color: fixme_text#000000; |
| | 150 | z-index: -1; |
| | 151 | } |
| | 152 | |
| | 153 | way!:closed[FIXME][setting("fixme_on_ways")]::fixme_and_note_layer, |
| | 154 | way!:closed[fixme][setting("fixme_on_ways")]::fixme_and_note_layer { |
| | 155 | width: 8; |
| | 156 | color: fixme#FF0000; |
| | 157 | major-z-index: -1; |
| | 158 | } |
| | 159 | |
| | 160 | way!:closed[FIXME][setting("fixme_on_ways")] { |
| | 161 | text: tag("FIXME"); |
| | 162 | text-color: fixme_text#000000; |
| | 163 | text-halo-radius: 2; |
| | 164 | text-halo-color: fixme#FF0000; |
| | 165 | font-size: 11; |
| | 166 | } |
| | 167 | way!:closed[fixme][setting("fixme_on_ways")] { |
| | 168 | text: fixme; |
| | 169 | text-color: fixme_text#000000; |
| | 170 | text-halo-radius: 2; |
| | 171 | text-halo-color: fixme#FF0000; |
| | 172 | font-size: 11; |
| | 173 | } |
| | 174 | |
| | 175 | area:closed[FIXME][setting("fixme_on_areas")] > way::fixme_and_note_layer, |
| | 176 | way:closed[FIXME][setting("fixme_on_areas")]::fixme_and_note_layer, |
| | 177 | area:closed[fixme][setting("fixme_on_areas")] > way::fixme_and_note_layer, |
| | 178 | way:closed[fixme][setting("fixme_on_areas")]::fixme_and_note_layer { |
| | 179 | width: 8; |
| | 180 | color: fixme#FF0000; |
| | 181 | major-z-index: -1; |
| | 182 | } |
| | 183 | |
| | 184 | area:closed[FIXME][setting("fixme_on_areas")], |
| | 185 | way:closed[FIXME][setting("fixme_on_areas")] { |
| | 186 | text: tag("FIXME"); |
| | 187 | text-position: inside; |
| | 188 | text-color: fixme_text#000000; |
| | 189 | text-halo-radius: 2; |
| | 190 | text-halo-color: fixme#FF0000; |
| | 191 | font-size: 11; |
| | 192 | } |
| | 193 | area:closed[fixme][setting("fixme_on_areas")], |
| | 194 | way:closed[fixme][setting("fixme_on_areas")] { |
| | 195 | text: fixme; |
| | 196 | text-position: inside; |
| | 197 | text-color: fixme_text#000000; |
| | 198 | text-halo-radius: 2; |
| | 199 | text-halo-color: fixme#FF0000; |
| | 200 | font-size: 11; |
| | 201 | } |
| | 202 | |
| | 203 | /* fixme is more important than note, so if both are tagged the style and text of fixme is used. */ |
| | 204 | |
| | 205 | /* icon text position correction, should harmonize fine with the default JOSM internal style and its icon style setting */ |
| | 206 | |
| | 207 | node[is_prop_set(icon-image, core_note_fixme)]::fixme_and_note_layer { |
| | 208 | text-offset-x: 4; |
| | 209 | } |
| | 210 | |
| | 211 | node[note][FIXME][is_prop_set(icon-image, core_note_fixme)]::fixme_and_note_layer, |
| | 212 | node[note][fixme][is_prop_set(icon-image, core_note_fixme)]::fixme_and_note_layer { |
| | 213 | text-offset-x: 10; |
| | 214 | } |
| | 215 | |
| | 216 | }}} |