mapcomplete/assets/layers/maproulette/maproulette.json

247 lines
5.8 KiB
JSON
Raw Normal View History

2022-07-10 21:29:37 +02:00
{
"id": "maproulette",
"source": {
"geoJson": "https://maproulette.org/api/v2/tasks/box/{x_min}/{y_min}/{x_max}/{y_max}",
"geoJsonZoomLevel": 16,
"osmTags": "id~*"
},
"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,center"
}
],
"tagRenderings": [
{
"id": "status",
"render": "Current status: {status}",
"mappings": [
{
"if": "status=0",
"then": {
2022-08-05 12:45:51 +02:00
"en": "Task is created",
"de": "Aufgabe wurde erstellt"
2022-07-10 21:29:37 +02:00
}
},
{
"if": "status=1",
"then": {
2022-08-05 12:45:51 +02:00
"en": "Task is fixed",
"de": "Aufgabe wurde erledigt"
2022-07-10 21:29:37 +02:00
}
},
{
"if": "status=2",
"then": {
2022-08-05 12:45:51 +02:00
"en": "Task is a false positive",
"de": "Aufgabe ist ein falsches Positiv"
2022-07-10 21:29:37 +02:00
}
},
{
"if": "status=3",
"then": {
2022-08-05 12:45:51 +02:00
"en": "Task is skipped",
"de": "Aufgabe wurde übersprungen"
2022-07-10 21:29:37 +02:00
}
},
{
"if": "status=4",
"then": {
2022-08-05 12:45:51 +02:00
"en": "Task is deleted",
"de": "Aufgabe wurde gelöscht"
2022-07-10 21:29:37 +02:00
}
},
{
"if": "status=5",
"then": {
2022-08-05 12:45:51 +02:00
"en": "Task is already fixed",
"de": "Aufgabe wurde bereits erledigt"
2022-07-10 21:29:37 +02:00
}
},
{
"if": "status=6",
"then": {
2022-08-05 12:45:51 +02:00
"en": "Task is marked as too hard",
"de": "Aufgabe wurde als zu schwer markiert"
2022-07-10 21:29:37 +02:00
}
},
{
"if": "status=9",
"then": {
2022-08-05 12:45:51 +02:00
"en": "Task is disabled",
"de": "Aufgabe wurde deaktiviert"
2022-07-10 21:29:37 +02:00
}
}
]
},
{
"id": "blurb",
"condition": "blurb~*",
"render": "{blurb}"
}
],
"description": {
2022-08-05 12:45:51 +02:00
"en": "Layer showing all tasks in MapRoulette",
"de": "Ebene, die alle MapRoulette-Aufgaben zeigt"
2022-07-10 21:29:37 +02:00
},
"minzoom": 15,
"name": {
2022-08-05 12:45:51 +02:00
"en": "MapRoulette Tasks",
"de": "MapRoulette-Aufgaben"
2022-07-10 21:29:37 +02:00
},
"title": {
"render": {
2022-08-05 12:45:51 +02:00
"en": "MapRoulette Item: {parentName}",
"de": "MapRoulette-Element: {parentName}"
2022-07-10 21:29:37 +02:00
}
},
2022-07-13 11:32:59 +02:00
"titleIcons": [
{
"id": "maproulette",
"render": "<a href='https://maproulette.org/challenge/{parentId}/task/{id}' target='_blank'><img src='./assets/layers/maproulette/logomark.svg'/></a>"
}
],
2022-07-10 21:29:37 +02:00
"filter": [
{
"id": "status",
"options": [
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks with all statuses",
"de": "Aufgaben mit allen Status anzeigen"
2022-07-10 21:29:37 +02:00
}
},
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks that are created",
"de": "Aufgaben anzeigen, die erstellt wurden"
2022-07-10 21:29:37 +02:00
},
"osmTags": "status=0"
},
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks that are fixed",
"de": "Aufgaben anzeigen, die erledigt wurden"
2022-07-10 21:29:37 +02:00
},
"osmTags": "status=1"
},
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks that are false positives",
"de": "Aufgaben anzeigen, die falsch positiv sind"
2022-07-10 21:29:37 +02:00
},
"osmTags": "status=2"
},
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks that are skipped",
"de": "Aufgaben anzeigen, die übersprungen wurden"
2022-07-10 21:29:37 +02:00
},
"osmTags": "status=3"
},
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks that are deleted",
"de": "Aufgaben anzeigen, die gelöscht wurden"
2022-07-10 21:29:37 +02:00
},
"osmTags": "status=4"
},
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks that are already fixed",
"de": "Aufgaben anzeigen, die bereits erledigt wurden"
2022-07-10 21:29:37 +02:00
},
"osmTags": "status=5"
},
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks that are marked as too hard",
"de": "Aufgaben anzeigen, die als zu schwierig markiert wurden"
2022-07-10 21:29:37 +02:00
},
"osmTags": "status=6"
},
{
"question": {
2022-08-05 12:45:51 +02:00
"en": "Show tasks that are disabled",
"de": "Aufgaben anzeigen, die deaktiviert wurden"
2022-07-10 21:29:37 +02:00
},
"osmTags": "status=9"
}
]
2022-07-10 21:43:35 +02:00
},
{
"id": "parent-name",
"options": [
{
"osmTags": "parentName~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
2022-08-05 12:45:51 +02:00
"en": "Challenge name contains {search}",
"de": "Name der Kampagne enthält {search}"
2022-07-10 21:43:35 +02:00
}
}
]
},
{
"id": "parent-id",
"options": [
{
"osmTags": "parentId={search}",
"fields": [
{
"name": "search"
}
],
"question": {
2022-08-05 12:45:51 +02:00
"en": "Challenge ID matches {search}",
"de": "Kampagnen ID stimmt mit {search} überein"
2022-07-10 21:43:35 +02:00
}
}
]
2022-07-10 21:29:37 +02:00
}
]
}