352 lines
9.8 KiB
JSON
352 lines
9.8 KiB
JSON
{
|
|
"id": "maproulette",
|
|
"source": {
|
|
"geoJson": "https://maproulette.org/api/v2/tasks/box/{x_min}/{y_min}/{x_max}/{y_max}",
|
|
"geoJsonZoomLevel": 16,
|
|
"osmTags": "title~*"
|
|
},
|
|
"description": {
|
|
"en": "Layer showing all tasks in MapRoulette",
|
|
"de": "Ebene, die alle MapRoulette-Aufgaben zeigt",
|
|
"nl": "Laag met alle taken uit MapRoulette",
|
|
"ca": "Capa que mostra totes les tasques de MapRoulette",
|
|
"pl": "Warstwa pokazująca wszystkie zadania w MapRoulette"
|
|
},
|
|
"mapRendering": [
|
|
{
|
|
"location": [
|
|
"point",
|
|
"centroid"
|
|
],
|
|
"icon": {
|
|
"render": "./assets/layers/maproulette/logomark.svg",
|
|
"mappings": [
|
|
{
|
|
"if": "status=0",
|
|
"then": "pin:#959DFF"
|
|
},
|
|
{
|
|
"if": "status=1",
|
|
"then": "pin:#65D2DA"
|
|
},
|
|
{
|
|
"if": "status=2",
|
|
"then": "pin:#F7BB59"
|
|
},
|
|
{
|
|
"if": "status=3",
|
|
"then": "pin:#F7BB59"
|
|
},
|
|
{
|
|
"if": "status=4",
|
|
"then": "pin:#737373"
|
|
},
|
|
{
|
|
"if": "status=5",
|
|
"then": "pin:#CCB186"
|
|
},
|
|
{
|
|
"if": "status=6",
|
|
"then": "pin:#FF5E63"
|
|
},
|
|
{
|
|
"if": "status=9",
|
|
"then": "pin:#FF349C"
|
|
}
|
|
]
|
|
},
|
|
"iconSize": "40,40",
|
|
"anchor": "bottom"
|
|
}
|
|
],
|
|
"tagRenderings": [
|
|
{
|
|
"id": "status",
|
|
"mappings": [
|
|
{
|
|
"if": "status=0",
|
|
"then": {
|
|
"en": "Task is created",
|
|
"de": "Aufgabe wurde erstellt",
|
|
"nl": "Taak werd gecreëerd",
|
|
"ca": "Es crea la tasca",
|
|
"pl": "Zadanie jest stworzone"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=1",
|
|
"then": {
|
|
"en": "Task is fixed",
|
|
"de": "Aufgabe wurde erledigt",
|
|
"nl": "Taak werd opgelost",
|
|
"pl": "Zadanie jest naprawione",
|
|
"ca": "La tasca està arreglada"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=2",
|
|
"then": {
|
|
"en": "Task is a false positive",
|
|
"de": "Aufgabe ist ein falsches Positiv",
|
|
"nl": "Taak was vals positief",
|
|
"pl": "Zadanie jest fałszywie pozytywne"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=3",
|
|
"then": {
|
|
"en": "Task is skipped",
|
|
"de": "Aufgabe wurde übersprungen",
|
|
"nl": "Taak werd overgeslagen",
|
|
"pl": "Zadanie jest pominięte"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=4",
|
|
"then": {
|
|
"en": "Task is deleted",
|
|
"de": "Aufgabe wurde gelöscht",
|
|
"nl": "Taak werd verwijderd",
|
|
"pl": "Zadania jest usunięte"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=5",
|
|
"then": {
|
|
"en": "Task is already fixed",
|
|
"de": "Aufgabe wurde bereits erledigt",
|
|
"nl": "Taak was al opgelost",
|
|
"pl": "Zadania jest już wykonane"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=6",
|
|
"then": {
|
|
"en": "Task is marked as too hard",
|
|
"de": "Aufgabe wurde als zu schwer markiert",
|
|
"nl": "Taak werd als te moeilijk ervaren",
|
|
"pl": "Zadanie jest oznaczone jako zbyt trudne"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=9",
|
|
"then": {
|
|
"en": "Task is disabled",
|
|
"de": "Aufgabe wurde deaktiviert",
|
|
"nl": "Taak is uitgeschakeld",
|
|
"pl": "Zadanie jest wyłączone"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"labels": [
|
|
"controls"
|
|
],
|
|
"id": "mark_fixed",
|
|
"render": {
|
|
"special": {
|
|
"type": "maproulette_set_status",
|
|
"message": {
|
|
"en": "Mark as fixed",
|
|
"de": "Als behoben markieren",
|
|
"ca": "Marca com a solucionat",
|
|
"pl": "Oznacz jako naprawione"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "mark_duplicate",
|
|
"labels": [
|
|
"controls"
|
|
],
|
|
"render": {
|
|
"special": {
|
|
"type": "maproulette_set_status",
|
|
"message": {
|
|
"en": "Mark as not found or false positive",
|
|
"de": "Als nicht gefunden oder Falschmeldung markieren",
|
|
"ca": "Marca com a no trobat o com a fals positiu",
|
|
"pl": "Oznacz jako nieznalezione lub fałszywie pozytywne"
|
|
},
|
|
"status": "2",
|
|
"image": "close"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "mark_too_hard",
|
|
"labels": [
|
|
"controls"
|
|
],
|
|
"render": {
|
|
"special": {
|
|
"type": "maproulette_set_status",
|
|
"message": {
|
|
"en": "Mark as too hard",
|
|
"de": "Als zu schwer markieren",
|
|
"ca": "Marca com a massa complicat",
|
|
"pl": "Oznacz jako zbyt trudne"
|
|
},
|
|
"status": "6",
|
|
"image": "not_found"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"minzoom": 15,
|
|
"name": {
|
|
"en": "MapRoulette Tasks",
|
|
"de": "MapRoulette-Aufgaben",
|
|
"nl": "MapRoulette Taken",
|
|
"pl": "Zadania MapRoulette",
|
|
"ca": "Tasques de MapRoulette"
|
|
},
|
|
"title": {
|
|
"render": {
|
|
"en": "MapRoulette Item: {parentName}",
|
|
"de": "MapRoulette-Element: {parentName}",
|
|
"nl": "MapRoulette Item: {parentName}",
|
|
"pl": "Obiekt MapRoulette: {parentName}"
|
|
}
|
|
},
|
|
"titleIcons": [
|
|
{
|
|
"id": "maproulette",
|
|
"render": "<a href='https://maproulette.org/challenge/{parentId}/task/{id}' target='_blank'><img src='./assets/layers/maproulette/logomark.svg'/></a>"
|
|
}
|
|
],
|
|
"filter": [
|
|
{
|
|
"id": "status",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Show tasks with all statuses",
|
|
"de": "Aufgaben mit allen Status anzeigen",
|
|
"nl": "Toon taken met alle statussen",
|
|
"pl": "Pokaż zadania z wszystkimi statusami",
|
|
"ca": "Mostra les tasques amb tots els estats"
|
|
}
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are created",
|
|
"de": "Aufgaben anzeigen, die erstellt wurden",
|
|
"nl": "Toon aangemaakte taken",
|
|
"pl": "Pokaż zadania, które zostały stworzone",
|
|
"ca": "Mostra les tasques que es creen"
|
|
},
|
|
"osmTags": "status=0"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are fixed",
|
|
"de": "Aufgaben anzeigen, die erledigt wurden",
|
|
"nl": "Toon opgeloste taken",
|
|
"ca": "Mostra les tasques que estan arreglades"
|
|
},
|
|
"osmTags": "status=1"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are false positives",
|
|
"de": "Aufgaben anzeigen, die falsch positiv sind",
|
|
"nl": "Toon vals-positieve taken",
|
|
"ca": "Mostra tasques que són falsos positius"
|
|
},
|
|
"osmTags": "status=2"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are skipped",
|
|
"de": "Aufgaben anzeigen, die übersprungen wurden",
|
|
"nl": "Toon overgeslagen taken",
|
|
"ca": "Mostra les tasques que s'han omès"
|
|
},
|
|
"osmTags": "status=3"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are deleted",
|
|
"de": "Aufgaben anzeigen, die gelöscht wurden",
|
|
"nl": "Toon verwijderde taken",
|
|
"ca": "Mostra les tasques que s'han suprimit"
|
|
},
|
|
"osmTags": "status=4"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are already fixed",
|
|
"de": "Aufgaben anzeigen, die bereits erledigt wurden",
|
|
"nl": "Toon al opgeloste taken",
|
|
"pl": "Pokaż zadania, które są już wykonane",
|
|
"ca": "Mostra les tasques que ja estan arreglades"
|
|
},
|
|
"osmTags": "status=5"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are marked as too hard",
|
|
"de": "Aufgaben anzeigen, die als zu schwierig markiert wurden",
|
|
"nl": "Toon taken die als te lastig gemarkeerd zijn",
|
|
"pl": "Pokaż zadania oznaczone jako zbyt trudne",
|
|
"ca": "Mostra les tasques marcades com a massa difícils"
|
|
},
|
|
"osmTags": "status=6"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are disabled",
|
|
"de": "Aufgaben anzeigen, die deaktiviert wurden",
|
|
"nl": "Toon uitgeschakelde taken",
|
|
"pl": "Pokaż zadania, które są wyłączone",
|
|
"ca": "Mostra les tasques que estan desactivades"
|
|
},
|
|
"osmTags": "status=9"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "parent-name",
|
|
"options": [
|
|
{
|
|
"osmTags": "parentName~i~.*{search}.*",
|
|
"fields": [
|
|
{
|
|
"name": "search"
|
|
}
|
|
],
|
|
"question": {
|
|
"en": "Challenge name contains {search}",
|
|
"de": "Name der Kampagne enthält {search}",
|
|
"nl": "Naam uitdaging bevat {search}",
|
|
"pl": "Nazwa wyzwania zawiera {search}",
|
|
"ca": "El nom del repte conté {search}"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "parent-id",
|
|
"options": [
|
|
{
|
|
"osmTags": "parentId={search}",
|
|
"fields": [
|
|
{
|
|
"name": "search"
|
|
}
|
|
],
|
|
"question": {
|
|
"en": "Challenge ID matches {search}",
|
|
"de": "Kampagnen ID stimmt mit {search} überein",
|
|
"nl": "ID uitdaging is {search}",
|
|
"pl": "ID wyzwania pasuje do {search}",
|
|
"ca": "L'identificador de desafiament coincideix amb {search}"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|