213 lines
No EOL
5.4 KiB
JSON
213 lines
No EOL
5.4 KiB
JSON
{
|
|
"id": "maproulette_challenge",
|
|
"name": null,
|
|
"description": {
|
|
"en": "Layer showing tasks of a MapRoulette challenge",
|
|
"de": "Ebene mit Aufgaben einer MapRoulette-Kampagne"
|
|
},
|
|
"source": {
|
|
"osmTags": "id~*",
|
|
"geoJson": "https://maproulette.org/api/v2/challenge/view/27971",
|
|
"isOsmCache": false
|
|
},
|
|
"title": {
|
|
"render": {
|
|
"en": "Item in MapRoulette",
|
|
"de": "Aufgabe in MapRoulette"
|
|
}
|
|
},
|
|
"titleIcons": [
|
|
{
|
|
"id": "maproulette",
|
|
"render": "<a href='https://maproulette.org/challenge/{mr_challengeId}/task/{mr_taskId}' target='_blank'><img src='./assets/layers/maproulette/logomark.svg'/></a>"
|
|
}
|
|
],
|
|
"mapRendering": [
|
|
{
|
|
"location": [
|
|
"point",
|
|
"centroid"
|
|
],
|
|
"icon": {
|
|
"render": "./assets/layers/maproulette/logomark.svg",
|
|
"mappings": [
|
|
{
|
|
"if": "mr_taskStatus=Created",
|
|
"then": "pin:#959DFF"
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Fixed",
|
|
"then": "pin:#65D2DA"
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=False positive",
|
|
"then": "pin:#F7BB59"
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Skipped",
|
|
"then": "pin:#F7BB59"
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Deleted",
|
|
"then": "pin:#737373"
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Already fixed",
|
|
"then": "pin:#CCB186"
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Too hard",
|
|
"then": "pin:#FF5E63"
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Disabled",
|
|
"then": "pin:#FF349C"
|
|
}
|
|
]
|
|
},
|
|
"iconSize": "40,40,bottom"
|
|
}
|
|
],
|
|
"tagRenderings": [
|
|
{
|
|
"id": "details",
|
|
"render": "{maproulette_task()}"
|
|
},
|
|
{
|
|
"id": "status",
|
|
"render": "Current status: {status}",
|
|
"mappings": [
|
|
{
|
|
"if": "mr_taskStatus=Created",
|
|
"then": {
|
|
"en": "Task is created",
|
|
"de": "Aufgabe wurde erstellt"
|
|
}
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Fixed",
|
|
"then": {
|
|
"en": "Task is fixed",
|
|
"de": "Aufgabe wurde erledigt"
|
|
}
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=False positive",
|
|
"then": {
|
|
"en": "Task is a false positive",
|
|
"de": "Aufgabe ist ein falsches Positiv"
|
|
}
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Skipped",
|
|
"then": {
|
|
"en": "Task is skipped",
|
|
"de": "Aufgabe wurde übersprungen"
|
|
}
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Deleted",
|
|
"then": {
|
|
"en": "Task is deleted",
|
|
"de": "Aufgabe wurde gelöscht"
|
|
}
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Already fixed",
|
|
"then": {
|
|
"en": "Task is already fixed",
|
|
"de": "Aufgabe wurde bereits erledigt"
|
|
}
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Too hard",
|
|
"then": {
|
|
"en": "Task is marked as too hard",
|
|
"de": "Aufgabe wurde als zu schwer markiert"
|
|
}
|
|
},
|
|
{
|
|
"if": "mr_taskStatus=Disabled",
|
|
"then": {
|
|
"en": "Task is disabled",
|
|
"de": "Aufgabe wurde deaktiviert"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "blurb",
|
|
"condition": "blurb~*",
|
|
"render": "{blurb}"
|
|
}
|
|
],
|
|
"filter": [
|
|
{
|
|
"id": "status",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Show tasks with all statuses",
|
|
"de": "Aufgaben mit allen Status anzeigen"
|
|
}
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are created",
|
|
"de": "Aufgaben anzeigen, die erstellt wurden"
|
|
},
|
|
"osmTags": "mr_taskStatus=Created"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are fixed",
|
|
"de": "Aufgaben anzeigen, die erledigt wurden"
|
|
},
|
|
"osmTags": "mr_taskStatus=Fixed"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are false positives",
|
|
"de": "Aufgaben anzeigen, die falsch positiv sind"
|
|
},
|
|
"osmTags": "mr_taskStatus=False positive"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are skipped",
|
|
"de": "Aufgaben anzeigen, die übersprungen wurden"
|
|
},
|
|
"osmTags": "mr_taskStatus=Skipped"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are deleted",
|
|
"de": "Aufgaben anzeigen, die gelöscht wurden"
|
|
},
|
|
"osmTags": "mr_taskStatus=Deleted"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are already fixed",
|
|
"de": "Aufgaben anzeigen, die bereits erledigt wurden"
|
|
},
|
|
"osmTags": "mr_taskStatus=Already fixed"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are marked as too hard",
|
|
"de": "Aufgaben anzeigen, die als zu schwierig markiert wurden"
|
|
},
|
|
"osmTags": "mr_taskStatus=Too hard"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are disabled",
|
|
"de": "Aufgaben anzeigen, die deaktiviert wurden"
|
|
},
|
|
"osmTags": "mr_taskStatus=Disabled"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |