This commit is contained in:
Pieter Vander Vennet 2025-10-02 18:19:55 +02:00
parent 3f9bb752cc
commit c02ec2435c
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ use [the maproulette theme in debug mode](https://mapcomplete.org/maproulette?de
To view the overview a single challenge, visit `https://maproulette.org/browse/challenges/<challenge-id>` with your To view the overview a single challenge, visit `https://maproulette.org/browse/challenges/<challenge-id>` with your
browser. browser.
The API endpoint for a single challenge is `https://maproulette.org/api/v2/challenge/view/<challenge-id>` which returns a The API endpoint for a single challenge is `https://maproulette.org/api/v2/challenge/view/<challenge-id>` which returns a
geojson. geojson. This endpoint supports a bbox to only return a part of the challenge: `https://maproulette.org/api/v2/challenge/view/<challenge-id>?bbox=west,south,east,north`
Override the geojson-source in order to use the challenge: Override the geojson-source in order to use the challenge:

View file

@ -11,6 +11,7 @@
"nl": "Laag met taken van een MapRoulette uitdaging" "nl": "Laag met taken van een MapRoulette uitdaging"
}, },
"source": { "source": {
"#": "Alternatively, if combined with `geojsonZoomLevel`, use geoJson with {y_min}, {y_max}, {x_min} and {x_max}. Only replace <id> in the next string: `https://maproulette.org/api/v2/challenge/view/<id>?bbox={x_min},{y_max},{x_max},{y_min}`",
"geoJson": "https://maproulette.org/api/v2/challenge/view/27971", "geoJson": "https://maproulette.org/api/v2/challenge/view/27971",
"osmTags": "mr_taskId~*" "osmTags": "mr_taskId~*"
}, },