247 lines
No EOL
5.8 KiB
JSON
247 lines
No EOL
5.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": "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": {
|
|
"en": "Task is created",
|
|
"de": "Aufgabe wurde erstellt"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=1",
|
|
"then": {
|
|
"en": "Task is fixed",
|
|
"de": "Aufgabe wurde erledigt"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=2",
|
|
"then": {
|
|
"en": "Task is a false positive",
|
|
"de": "Aufgabe ist ein falsches Positiv"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=3",
|
|
"then": {
|
|
"en": "Task is skipped",
|
|
"de": "Aufgabe wurde übersprungen"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=4",
|
|
"then": {
|
|
"en": "Task is deleted",
|
|
"de": "Aufgabe wurde gelöscht"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=5",
|
|
"then": {
|
|
"en": "Task is already fixed",
|
|
"de": "Aufgabe wurde bereits erledigt"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=6",
|
|
"then": {
|
|
"en": "Task is marked as too hard",
|
|
"de": "Aufgabe wurde als zu schwer markiert"
|
|
}
|
|
},
|
|
{
|
|
"if": "status=9",
|
|
"then": {
|
|
"en": "Task is disabled",
|
|
"de": "Aufgabe wurde deaktiviert"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "blurb",
|
|
"condition": "blurb~*",
|
|
"render": "{blurb}"
|
|
}
|
|
],
|
|
"description": {
|
|
"en": "Layer showing all tasks in MapRoulette",
|
|
"de": "Ebene, die alle MapRoulette-Aufgaben zeigt"
|
|
},
|
|
"minzoom": 15,
|
|
"name": {
|
|
"en": "MapRoulette Tasks",
|
|
"de": "MapRoulette-Aufgaben"
|
|
},
|
|
"title": {
|
|
"render": {
|
|
"en": "MapRoulette Item: {parentName}",
|
|
"de": "MapRoulette-Element: {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"
|
|
}
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are created",
|
|
"de": "Aufgaben anzeigen, die erstellt wurden"
|
|
},
|
|
"osmTags": "status=0"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are fixed",
|
|
"de": "Aufgaben anzeigen, die erledigt wurden"
|
|
},
|
|
"osmTags": "status=1"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are false positives",
|
|
"de": "Aufgaben anzeigen, die falsch positiv sind"
|
|
},
|
|
"osmTags": "status=2"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are skipped",
|
|
"de": "Aufgaben anzeigen, die übersprungen wurden"
|
|
},
|
|
"osmTags": "status=3"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are deleted",
|
|
"de": "Aufgaben anzeigen, die gelöscht wurden"
|
|
},
|
|
"osmTags": "status=4"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are already fixed",
|
|
"de": "Aufgaben anzeigen, die bereits erledigt wurden"
|
|
},
|
|
"osmTags": "status=5"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are marked as too hard",
|
|
"de": "Aufgaben anzeigen, die als zu schwierig markiert wurden"
|
|
},
|
|
"osmTags": "status=6"
|
|
},
|
|
{
|
|
"question": {
|
|
"en": "Show tasks that are disabled",
|
|
"de": "Aufgaben anzeigen, die deaktiviert wurden"
|
|
},
|
|
"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}"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "parent-id",
|
|
"options": [
|
|
{
|
|
"osmTags": "parentId={search}",
|
|
"fields": [
|
|
{
|
|
"name": "search"
|
|
}
|
|
],
|
|
"question": {
|
|
"en": "Challenge ID matches {search}",
|
|
"de": "Kampagnen ID stimmt mit {search} überein"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |