Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
change links for files and add project region to download files #40 #39
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagellach37 committed Mar 11, 2021
1 parent b949a0b commit 4bf588e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions assets/js/components/projectStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ function populateProjectDataTable(projectId) {

var datasets = [
{'name': 'Aggregated Results',
'url': 'https://apps.mapswipe.org/api/agg_results/agg_results_' + projectId + '.csv',
'url': 'https://apps.mapswipe.org/api/agg_results/agg_results_' + projectId + '.csv.gz',
'description': 'aggregated results',
'datatype': 'CSV'
},
{'name': 'Aggregated Results (with Geometry)',
'url': 'https://apps.mapswipe.org/api/agg_results/agg_results_' + projectId + '_geom.geojson',
'url': 'https://apps.mapswipe.org/api/agg_results/agg_results_' + projectId + '_geom.geojson.gz',
'description': 'aggregated results',
'datatype': 'GeoJSON'
},
Expand All @@ -208,7 +208,7 @@ function populateProjectDataTable(projectId) {
'datatype': 'GeoJSON'
},
{'name': 'Groups',
'url': 'https://apps.mapswipe.org/api/groups/groups_' + projectId + '.csv',
'url': 'https://apps.mapswipe.org/api/groups/groups_' + projectId + '.csv.gz',
'description': 'Groups',
'datatype': 'CSV'
},
Expand All @@ -218,12 +218,12 @@ function populateProjectDataTable(projectId) {
'datatype': 'CSV'
},
{'name': 'Results',
'url': 'https://apps.mapswipe.org/api/results/results_' + projectId + '.csv',
'url': 'https://apps.mapswipe.org/api/results/results_' + projectId + '.csv.gz',
'description': 'Results',
'datatype': 'CSV'
},
{'name': 'Tasks',
'url': 'https://apps.mapswipe.org/api/tasks/tasks_' + projectId + '.csv',
'url': 'https://apps.mapswipe.org/api/tasks/tasks_' + projectId + '.csv.gz',
'description': 'Tasks',
'datatype': 'CSV'
},
Expand All @@ -232,6 +232,11 @@ function populateProjectDataTable(projectId) {
'description': 'This dataset contains information on the individual contributions per user. This tells you for instance the most active users of this project.',
'datatype': 'CSV'
},
{'name': 'Area of Interest',
'url': 'https://apps.mapswipe.org/api/project_geometries/project_geom_' + projectId + '.geojson',
'description': 'This dataset contains information on the project region.',
'datatype': 'GeoJSON'
}
]

var tableRef = document.getElementById('projectDataTable').getElementsByTagName('tbody')[0];
Expand Down

0 comments on commit 4bf588e

Please sign in to comment.