diff --git a/assets/layers/maproulette/license_info.json b/assets/layers/maproulette/license_info.json new file mode 100644 index 0000000000..f59ad3208c --- /dev/null +++ b/assets/layers/maproulette/license_info.json @@ -0,0 +1,12 @@ +[ + { + "path": "logomark.svg", + "license": "MIT", + "authors": [ + "MapRoulette" + ], + "sources": [ + "https://github.com/maproulette/docs/blob/master/src/assets/svg/logo.svg" + ] + } +] \ No newline at end of file diff --git a/assets/layers/maproulette/logomark.svg b/assets/layers/maproulette/logomark.svg new file mode 100644 index 0000000000..4ad7dd319e --- /dev/null +++ b/assets/layers/maproulette/logomark.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/assets/layers/maproulette/maproulette.json b/assets/layers/maproulette/maproulette.json new file mode 100644 index 0000000000..3daf863895 --- /dev/null +++ b/assets/layers/maproulette/maproulette.json @@ -0,0 +1,191 @@ +{ + "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": "link", + "render": "View this task" + }, + { + "id": "status", + "render": "Current status: {status}", + "mappings": [ + { + "if": "status=0", + "then": { + "en": "Task is created" + } + }, + { + "if": "status=1", + "then": { + "en": "Task is fixed" + } + }, + { + "if": "status=2", + "then": { + "en": "Task is a false positive" + } + }, + { + "if": "status=3", + "then": { + "en": "Task is skipped" + } + }, + { + "if": "status=4", + "then": { + "en": "Task is deleted" + } + }, + { + "if": "status=5", + "then": { + "en": "Task is already fixed" + } + }, + { + "if": "status=6", + "then": { + "en": "Task is marked as too hard" + } + }, + { + "if": "status=9", + "then": { + "en": "Task is disabled" + } + } + ] + }, + { + "id": "blurb", + "condition": "blurb~*", + "render": "{blurb}" + } + ], + "description": { + "en": "Layer showing all tasks in MapRoulette" + }, + "minzoom": 15, + "name": { + "en": "MapRoulette Tasks" + }, + "title": { + "render": { + "en": "MapRoulette Item: {parentName}" + } + }, + "filter": [ + { + "id": "status", + "options": [ + { + "question": { + "en": "Show tasks with all statuses" + } + }, + { + "question": { + "en": "Show tasks that are created" + }, + "osmTags": "status=0" + }, + { + "question": { + "en": "Show tasks that are fixed" + }, + "osmTags": "status=1" + }, + { + "question": { + "en": "Show tasks that are false positives" + }, + "osmTags": "status=2" + }, + { + "question": { + "en": "Show tasks that are skipped" + }, + "osmTags": "status=3" + }, + { + "question": { + "en": "Show tasks that are deleted" + }, + "osmTags": "status=4" + }, + { + "question": { + "en": "Show tasks that are already fixed" + }, + "osmTags": "status=5" + }, + { + "question": { + "en": "Show tasks that are marked as too hard" + }, + "osmTags": "status=6" + }, + { + "question": { + "en": "Show tasks that are disabled" + }, + "osmTags": "status=9" + } + ] + } + ] +} \ No newline at end of file diff --git a/assets/themes/mapcomplete-changes/mapcomplete-changes.json b/assets/themes/mapcomplete-changes/mapcomplete-changes.json index 8fc630f67c..f02bc13de8 100644 --- a/assets/themes/mapcomplete-changes/mapcomplete-changes.json +++ b/assets/themes/mapcomplete-changes/mapcomplete-changes.json @@ -219,6 +219,10 @@ "if": "theme=mapcomplete-changes", "then": "./assets/svg/logo.svg" }, + { + "if": "theme=maproulette", + "then": "./assets/layers/maproulette/logomark.svg" + }, { "if": "theme=maps", "then": "./assets/themes/maps/logo.svg" diff --git a/assets/themes/maproulette/maproulette.json b/assets/themes/maproulette/maproulette.json index 56b0c5ace1..3695f3edad 100644 --- a/assets/themes/maproulette/maproulette.json +++ b/assets/themes/maproulette/maproulette.json @@ -8,138 +8,12 @@ }, "version": "1.0.0", "hideFromOverview": true, - "icon": "./assets/svg/bug.svg", + "icon": "./assets/layers/maproulette/logomark.svg", "maintainer": "", "startLat": 0, "startLon": 0, "startZoom": 4, "layers": [ - { - "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": "pin:white", - "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": "link", - "render": "View this task" - }, - { - "id": "status", - "render": "Current status: {status}", - "mappings": [ - { - "if": "status=0", - "then": { - "en": "Task is created" - } - }, - { - "if": "status=1", - "then": { - "en": "Task is fixed" - } - }, - { - "if": "status=2", - "then": { - "en": "Task is a false positive" - } - }, - { - "if": "status=3", - "then": { - "en": "Task is skipped" - } - }, - { - "if": "status=4", - "then": { - "en": "Task is deleted" - } - }, - { - "if": "status=5", - "then": { - "en": "Task is already fixed" - } - }, - { - "if": "status=6", - "then": { - "en": "Task is marked as too hard" - } - }, - { - "if": "status=9", - "then": { - "en": "Task is disabled" - } - } - ] - }, - "all_tags" - ], - "description": { - "en": "Layer showing all tasks in MapRoulette" - }, - "minzoom": 15, - "name": { - "en": "MapRoulette Tasks" - }, - "title": { - "render": { - "en": "MapRoulette Item: {parentName}" - } - } - } + "maproulette" ] } \ No newline at end of file