forked from MapComplete/MapComplete
Refactoring: fix statistics in onwheels theme
This commit is contained in:
parent
0f897306a0
commit
3468837e0b
10 changed files with 84 additions and 256 deletions
|
@ -511,75 +511,6 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"builtin": "maproulette_challenge",
|
||||
"override": {
|
||||
"source": {
|
||||
"geoJson": "https://maproulette.org/api/v2/challenge/view/28012"
|
||||
},
|
||||
"calculatedTags": [
|
||||
"_closest_osm_hotel=closest(feat)('tourism_accomodation')?.properties?.id",
|
||||
"_closest_osm_hotel_distance=distanceTo(feat)(feat.properties._closest_osm_hotel)",
|
||||
"_has_closeby_feature=Number(feat.properties._closest_osm_hotel_distance) < 50 ? 'yes' : 'no'"
|
||||
],
|
||||
"+tagRenderings": [
|
||||
{
|
||||
"id": "import-button",
|
||||
"condition": "_has_closeby_feature=no",
|
||||
"render": {
|
||||
"special": {
|
||||
"type": "import_button",
|
||||
"targetLayer": "tourism_accomodation",
|
||||
"tags": "tags",
|
||||
"text": {
|
||||
"en": "Import",
|
||||
"de": "Import",
|
||||
"fr": "Importation",
|
||||
"da": "Importere",
|
||||
"nb_NO": "Importer",
|
||||
"ca": "Importar",
|
||||
"pa_PK": "ایمپورٹ کرو",
|
||||
"nl": "Importeren",
|
||||
"cs": "Dovoz",
|
||||
"es": "Importar",
|
||||
"eu": "Inportatu",
|
||||
"pl": "Import",
|
||||
"zh_Hant": "匯入",
|
||||
"ko": "불러오기"
|
||||
},
|
||||
"icon": "./assets/svg/addSmall.svg",
|
||||
"maproulette_id": "mr_taskId"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tag-apply-button",
|
||||
"condition": "_has_closeby_feature=yes",
|
||||
"render": {
|
||||
"special": {
|
||||
"type": "tag_apply",
|
||||
"tags_to_apply": "$tags",
|
||||
"message": {
|
||||
"en": "Add all the suggested tags",
|
||||
"de": "Alle vorgeschlagenen Tags hinzufügen",
|
||||
"fr": "Ajouter tous les attributs suggérés",
|
||||
"da": "Tilføj alle de foreslåede tags",
|
||||
"nb_NO": "Legg til alle foreslåtte",
|
||||
"nl": "Voeg alle gesuggereerde tags toe",
|
||||
"cs": "Přidat všechny navrhované značky",
|
||||
"es": "Agregar todas las etiquetas sugeridas",
|
||||
"ca": "Afegiu totes les etiquetes suggerides",
|
||||
"pl": "Dodaj wszystkie sugerowane znaczniki",
|
||||
"ko": "제안된 모든 태그 추가"
|
||||
},
|
||||
"image": "./assets/svg/addSmall.svg",
|
||||
"id_of_object_to_apply_this_one": "_closest_osm_hotel"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"overrideAll": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue