maproulette / maproulette3

MapRoulette, the micro-tasking tool for OpenStreetMap
https://maproulette.org
MIT License
128 stars 34 forks source link

[Cloning challenges] Clone for a named administrative area #2130

Open mvexel opened 1 year ago

mvexel commented 1 year ago

Right now we ask the user to manually adapt the overpass query for a cloned challenge. For example, the Overpass query for a clone of this challenge would start with

/*
THIS IS THE QUERY OF THE CHALLENGE YOU CLONED PLEASE ADAPT BEFORE USING TO AVOID CREATING DUPLICATE TASKS

rel(161993);map_to_area->.a; // state of utah

Now the user has to go to osm.org or nominatim.osm.org to look up the relation ID for the admin area they want to clone the challenge for, and go back in and insert that ID in the right place in the overpass Query input.

That's a lot to ask of someone who has no experience with Overpass and just wants a copy of an existing challenge for their own city / county / state / ...

Functional description of the feature

  1. A link or (better) button "Clone For Area..." would pop up a modal with instructions (exact wording to be confirmed)

"You are about to create a clone of this challenge (). This means that that a copy of this Challenge will be created with all the same settings, but for the area you are interested in. The cloned challenge will have the same name, but with the added text "Clone for AREA". You can change this in the next screen. You can also change other settings, for example the preferred aerial imagery to use."

[NOMINATIM SEARCH BOX]

[Clone Challenge button]

  1. MapRoulette creates a copy of the challenge and presents the user with the Challenge create screen. This is the same as the current clone implementation, except for the preset title and the adapted overpass query.
  2. User confirms any changes and the challenge is populated.

Additional Requirements

Caveats

AndrewPhilbin commented 11 months ago

I've built some of the UI for this, but it's still not clear exactly how to handle different query formats from the parent/ancestor challenge. Currently this probably needs a bit more discussion.