- You will need a GeoJSON of the area covering all the of examples you would like your tutorial to include. You can quickly create a GeoJSON of an area using https://geojson.io/ if you do not have one already.
- Use the GeoJSON to create a project on the dev server. You do this in order to generate the outlines of the individual tiles that make up the 3x2 grid on each MapSwipe screen (in both the projects and the tutorials). You will select from the generated grid file to define your tutorial pages.
- Make sure the Project Type is set to Find.
- You'll need to complete at least 1 mapping session later, so it's recommended that you set the Group Size to a small number. The smallest currently available is 10.
- Publish your project and complete one mapping session from the dev version of the MapSwipe app on your phone. IMPORTANT: Make sure you press 'Complete Session' at the end of your mapping to sync your results with the server.
- Wait up to 60 minutes for the backend to run the generate stats workflow. Then download the file for your project from https://dev.mapswipe.org/api/tasks/
- You will be able to identify your task by matching the Project ID from https://dev-managers.mapswipe.org/projects/ with the same ID on https://dev.mapswipe.org/api/tasks/. It should be near the bottom of the list as this list is sorted by recency.
- Unzip the file (it will download as a
*.csv.gzand you'll need to extract it to have the*.csvbefore use). - Open the file in QGIS (or the GIS software of your choice).
- In QGIS you can go to Layer > Add Layer > Add Delimited Text Layer... then select your file.
- For File Format, make sure it is set to CSV (comma separated values).
- Then for Geometry Definition select Well known text (WKT) and set the Geometry field to
geom. Your CSV should have a column withgeomas the header and the cells populated withMULTIPOLYGON(((followed by a series of numbers. This column defines the cells that you will use for your tutorial. - Large areas with lots of squares may load quite slowly. If you export/save the file as a GeoPackage and use that file in QGIS, then the performance as you move around the map and interact with the file should improve.
If you intend to use Bing Imagery for your task and tutorial, it is important to change the version of Bing Imagery you use to create your tutorial. The Python worker for the tutorial uses a g value of g = 7505. By default, the g value of Bing Imagery is g = 1 in QGIS. Hence, it is imperative to make sure we change g value so that the tasks we set for our tutorial appear on the app as we have seen it on QGIS.
- Add a Bing Imagery layer to your project.
- Right click on the layer, and press
Properties, thenSource. - In the URL, amend the URL from
http://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=1tohttp://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g=7505. - Press
Apply, thenOK.
- Export the
.csvlayer as aGeoJSON. - Open the Attribute Table of the
GeoJSONand toggle editing mode. - Keep the
task_id,tile_z,tile_x,tile_ycolumns and delete all other columns. - Add Integer (32 bit) columns titled
screenandreference. - Change the Symbology style of the
GeoJSONto a style with no fill so you can see the imagery through the tiles. - Select the squares you want to use for your tutorial. NOTE: Squares must be copied in sets of 6 (2 wide x 3 tall) to match how they are shown in the app.
- Export just the Selected Features as a new GeoJSON layer.
- Open the attribute table of the newest
GeoJSONlayer, and toggle editing. - Populate the
screenattribute for all squares. The numbers should match the order you want them displayed in the app. Each square in each group of 6 should have the same number. - Populate the
referenceattribute for all squares. The numbers should match the correct answer:0for no match,1for 1 tap (green) for a match,2for 2 taps (yellow) for maybe,3for 3 taps (red) for bad imagery. - Populate these fields for all of the tiles you have in your newest
GeoJSONlayer, and Save the layer.
- Go to https://dev-managers.mapswipe.org/
- Select Project and then Add New Tutorial.
- Check that Project Type is set to Find.
- Fill in the Name of the Tutorial. You should include a number that you can increment in case you need to make an edit and upload a new version.
- Fill in the Look For. This will show up on the second screen of the tutorial.
- You can add Information Pages. They can have 1, 2, or 3 pictures will accompanying text. Select which type page(s) you want to add from the Add Page dropdown. Then populate the text fields and upload image(s). You'll be able to preview the page. Note that will longer text and more pictures, the user will have to scroll to read everything and may miss important information.
- Upload your
GeoJSONyou just created where it says Scenario Pages.
- You should see your selections from in QGIS, ordered according to the value you used for
screen, and colour coordinated depending on the numbers you used in thereferencecolumn.
- Fill in the
Title,Icon,Descriptionfor each of the scenarios.
- Each scenario page screen will have objects for
instructions,hint, andsuccess- and each of those will have atitle,icon, anddescriptionthat can be set. - The
titleanddescriptionare both free text. The title will appear first on the screen and be styled bold. - For
iconthere is an option for each action the user can perform:swipe-leftfor continuing,tap-1for yes (green),tap-2for maybe (yellow),tap-3for bad imagery (red). And alsocheckto show a green-check success icon. - A user taking the tutorial always sees the
instructions. A Show answers button will appear if the user has tapped the number of times necessary to answer the screen correctly, but they have not answered correctly. For example, if the correct answer is 1 yellow square or 2 green squares (both scenarios requiring 2 taps), then Show answers will appear after 2 taps if the correct answer is not provided. After clicking the button, the user will see thehinttexts. If the user answers correctly they are shown thesuccesstexts. A user will see either thehintor thesuccessdepending on their taps (but not both).
- Click Submit and wait for about 5 minutes.
- Create a project and set it to use the new tutorial. Check that it works how you expect in the dev app.
- Repeat the steps from the dev server to upload your new tutorial to the production server.