buildings-col.json (7947B)
1 { 2 "id": "buildings", 3 "title": { 4 "fr": "Bâtiments" 5 }, 6 "shortDescription": { 7 "fr": "Bâtiments" 8 }, 9 "description": { 10 "fr": "Type, étages, toit des bâtiments" 11 }, 12 "language": [ 13 "fr" 14 ], 15 "maintainer": "", 16 "icon": "./assets/svg/home.svg", 17 "version": "20210531", 18 "startLat": 45.70141, 19 "startLon": -0.31751, 20 "startZoom": 19, 21 "widenFactor": 0.01, 22 "socialImage": "", 23 "layers": [ 24 { 25 "id": "buildings", 26 "name": { 27 "fr": "Bâtiments" 28 }, 29 "minzoom": 19, 30 "overpassTags": { 31 "or": [ 32 "building=yes", 33 "building=school", 34 "building=detached", 35 "building=house", 36 "building=residential", 37 "building=apartments", 38 "building=garage", 39 "building=shed", 40 "building=industrial", 41 "building=sports_hall" 42 ] 43 }, 44 "title": { 45 "render": { 46 "fr": "Bâtiment" 47 }, 48 "mappings": [] 49 }, 50 "description": { 51 "fr": "Étages des bâtiments" 52 }, 53 "tagRenderings": [ 54 { 55 "render": { 56 "fr": "Ce bâtiment a {building:levels} niveaux" 57 }, 58 "question": { 59 "fr": "Combien ce bâtiment a-t-il de niveaux ? (d'étages en comptant le rez-de-chaussée)" 60 }, 61 "freeform": { 62 "key": "building:levels", 63 "type": "pnat" 64 } 65 }, 66 { 67 "freeform": { 68 "key": "building", 69 "addExtraTags": [] 70 }, 71 "mappings": [ 72 { 73 "if": { 74 "and": [ 75 "building=school" 76 ] 77 }, 78 "then": { 79 "fr": "C'est un bâtiment scolaire" 80 } 81 }, 82 { 83 "if": { 84 "and": [ 85 "building=industrial" 86 ] 87 }, 88 "then": { 89 "fr": "C'est un bâtiment industiel" 90 } 91 }, 92 { 93 "if": { 94 "and": [ 95 "building=sports_hall" 96 ] 97 }, 98 "then": { 99 "fr": "C'est une salle de sport ou ungymnase" 100 } 101 }, 102 { 103 "if": { 104 "and": [ 105 "building=shed" 106 ] 107 }, 108 "then": { 109 "fr": "C'est un bâtiment de stoquage ou un atelier" 110 } 111 }, 112 { 113 "if": { 114 "and": [ 115 "building=garage" 116 ] 117 }, 118 "then": { 119 "fr": "C'est un garage" 120 } 121 }, 122 { 123 "if": { 124 "and": [ 125 "building=detached" 126 ] 127 }, 128 "then": { 129 "fr": "C'est une maison individuelle détachée des autres" 130 } 131 }, 132 { 133 "if": { 134 "and": [ 135 "building=house" 136 ] 137 }, 138 "then": { 139 "fr": "C'est une maison (qui peut en toucher une autre)" 140 } 141 }, 142 { 143 "if": { 144 "and": [ 145 "building=apartments" 146 ] 147 }, 148 "then": { 149 "fr": "C'est un immeuble d'apartements" 150 } 151 }, 152 { 153 "if": { 154 "and": [ 155 "building=yes" 156 ] 157 }, 158 "then": { 159 "fr": "Ce bâtiment n'a pas encore de type précis (à modifier)" 160 }, 161 "hideInAnswer": true 162 } 163 ], 164 "render": { 165 "fr": "Ce bâtiment est de type : {building}" 166 }, 167 "question": { 168 "fr": "Quel est le type de ce bâtiment ?" 169 } 170 }, 171 { 172 "render": { 173 "fr": "Le toit de ce bâtiment a pour forme : {roof:shape}" 174 }, 175 "question": { 176 "fr": "Quelle est la forme du toit de ce bâtiment ?" 177 }, 178 "freeform": { 179 "key": "roof:shape" 180 }, 181 "mappings": [ 182 { 183 "if": { 184 "and": [ 185 "roof:shape=flat" 186 ] 187 }, 188 "then": { 189 "fr": "Ce toit est plat <img src=\"https://wiki.openstreetmap.org/w/images/thumb/0/03/Roof0_0.jpg/565px-Roof0_0.jpg\" alt=\"Toit plat\"/>" 190 } 191 }, 192 { 193 "if": { 194 "and": [ 195 "roof:shape=skillion" 196 ] 197 }, 198 "then": { 199 "fr": "Ce toit a une simple pente <img src=\"https://wiki.openstreetmap.org/w/images/thumb/1/19/Roof1_0.jpg/537px-Roof1_0.jpg\" alt=\"Toit à simple pente\"/>" 200 } 201 }, 202 { 203 "if": { 204 "and": [ 205 "roof:shape=gabled" 206 ] 207 }, 208 "then": { 209 "fr": "Toit à double pente <img src=\"https://wiki.openstreetmap.org/w/images/thumb/e/e8/Roof2_0.jpg/537px-Roof2_0.jpg\" alt=\"Toit à double pente\"/>" 210 } 211 }, 212 { 213 "if": { 214 "and": [ 215 "roof:shape=half-hipped" 216 ] 217 }, 218 "then": { 219 "fr": "Toit à double pente (coupées aux angles)<img src=\"https://wiki.openstreetmap.org/w/images/thumb/6/6b/Roof2_3.jpg/537px-Roof2_3.jpg\" alt=\"Toit à double pente coupé\"/> " 220 } 221 }, 222 { 223 "if": { 224 "and": [ 225 "roof:shape=hipped" 226 ] 227 }, 228 "then": { 229 "fr": "Toit à 4 pentes<img src=\"https://wiki.openstreetmap.org/w/images/thumb/6/67/Roof2_4.jpg/537px-Roof2_4.jpg\" alt=\"Toit à 4 pentes\"/> " 230 } 231 }, 232 { 233 "if": { 234 "and": [ 235 "roof:shape=pyramidal" 236 ] 237 }, 238 "then": { 239 "fr": "Toit à 4 pentes qui se rejoignent (pyramidal)<img src=\"https://wiki.openstreetmap.org/w/images/thumb/a/a1/Roof2_5.jpg/537px-Roof2_5.jpg\" alt=\"Toit pyramidal\"/> " 240 } 241 }, 242 { 243 "if": { 244 "and": [ 245 "roof:shape=saltbox" 246 ] 247 }, 248 "then": { 249 "fr": "Toit à double pente et sommet plat (probablement une erreur) <img src=\"https://wiki.openstreetmap.org/w/images/thumb/7/7b/Roof3_1.jpg/537px-Roof3_1.jpg\" alt=\"Toit saltbox\"/> " 250 }, 251 "hideInAnswer": true 252 } 253 ] 254 } 255 ], 256 "hideUnderlayingFeaturesMinPercentage": 0, 257 "icon": { 258 "render": "./assets/svg/home.svg" 259 }, 260 "width": { 261 "render": "8" 262 }, 263 "iconSize": { 264 "render": "40,40,center" 265 }, 266 "color": { 267 "render": "#0f0", 268 "mappings": [ 269 { 270 "if": { 271 "and": [ 272 "building=yes", 273 "building:levels!~.", 274 "roof:shape!~.+" 275 ] 276 }, 277 "then": { 278 "fr": "#f00" 279 } 280 }, 281 { 282 "if": { 283 "and": [ 284 "building!~yes", 285 "building:levels=", 286 "roof:shape=" 287 ] 288 }, 289 "then": { 290 "fr": "#00f" 291 } 292 } 293 ] 294 }, 295 "wayHandling": 0 296 } 297 ], 298 "roamingRenderings": [] 299 }